Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008335/0.0008335, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003901/0.003901, allocations: 160.7 kB / 24.7 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.828/0.828, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.297e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002118/0.002141, allocations: 1.995 MB / 327.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006302/0.002771, allocations: 0.5103 MB / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.656e-05/0.002858, allocations: 3.938 kB / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.292e-05/0.002951, allocations: 19.8 kB / 328.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.381e-05/0.003005, allocations: 31.77 kB / 328.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002338/0.003238, allocations: 59.75 kB / 328.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.003371, allocations: 119.6 kB / 328.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.003494, allocations: 45.92 kB / 328.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.458e-05/0.003579, allocations: 71.81 kB / 328.7 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.085e-05/0.00364, allocations: 39.88 kB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.003665, allocations: 12 kB / 328.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.305e-05/0.003678, allocations: 8 kB / 328.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.328e-05/0.003702, allocations: 23.91 kB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.393e-05/0.003745, allocations: 39.86 kB / 328.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.003894, allocations: 127.6 kB / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.003897, allocations: 4 kB / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.003898, allocations: 0 / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.003902, allocations: 0 / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004179/0.00432, allocations: 353.8 kB / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.004353, allocations: 8.031 kB / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.004387, allocations: 16.84 kB / 329.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.004555, allocations: 149.5 kB / 329.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.004571, allocations: 12.38 kB / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.004597, allocations: 20.27 kB / 329.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.004925, allocations: 231.2 kB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.004937, allocations: 4.125 kB / 329.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.004949, allocations: 4.375 kB / 329.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.004956, allocations: 7.938 kB / 329.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.005097, allocations: 83.88 kB / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000398/0.005495, allocations: 496.6 kB / 330.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.005662, allocations: 135.9 kB / 330.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.76e-05/0.005749, allocations: 78.5 kB / 330.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.005769, allocations: 3.984 kB / 330.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.005795, allocations: 42.56 kB / 330.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.074e-06/0.005797, allocations: 0 / 330.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002899/0.006086, allocations: 173.4 kB / 330.7 MB, free: 10.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.006136, allocations: 106.8 kB / 330.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.856e-05/0.006205, allocations: 130.1 kB / 330.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.006217, allocations: 29.7 kB / 330.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/0.006269, allocations: 112.1 kB / 331.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.006284, allocations: 23.92 kB / 331.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.006316, allocations: 33.7 kB / 331.1 MB, free: 9.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.825e-05/0.006384, allocations: 322.8 kB / 331.4 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.047e-05/0.006435, allocations: 27.92 kB / 331.5 MB, free: 9.539 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.52e-05/0.0065, allocations: 78.84 kB / 331.5 MB, free: 9.438 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.006623, allocations: 122.6 kB / 331.7 MB, free: 9.293 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.006625, allocations: 0 / 331.7 MB, free: 9.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001555/0.006781, allocations: 133.6 kB / 331.8 MB, free: 9.156 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.006793, allocations: 8.219 kB / 331.8 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.006799, allocations: 4 kB / 331.8 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.00681, allocations: 0 / 331.8 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.627e-05/0.006896, allocations: 35.91 kB / 331.8 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.006901, allocations: 0 / 331.8 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.188e-05/0.006943, allocations: 23.83 kB / 331.9 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-06/0.00695, allocations: 8 kB / 331.9 MB, free: 9.078 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.007017, allocations: 131.7 kB / 332 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/0.007339, allocations: 82.02 kB / 332.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.436e-05/0.007364, allocations: 12.78 kB / 332.1 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.007367, allocations: 4 kB / 332.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.007371, allocations: 96 / 332.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.007374, allocations: 7.875 kB / 332.1 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.007505, allocations: 137.2 kB / 332.2 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.007507, allocations: 4 kB / 332.2 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.317e-05/0.00759, allocations: 31.97 kB / 332.3 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.007592, allocations: 0 / 332.3 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.007604, allocations: 8 kB / 332.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.007605, allocations: 0 / 332.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.007607, allocations: 8 kB / 332.3 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.007889, allocations: 382.4 kB / 332.7 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.263e-05/0.007902, allocations: 11.91 kB / 332.7 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.007915, allocations: 0 / 332.7 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.316e-05/0.007978, allocations: 8 kB / 332.7 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.008009, allocations: 7.984 kB / 332.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.008014, allocations: 4 kB / 332.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.657e-05/0.00805, allocations: 100.4 kB / 332.8 MB, free: 8.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00805, allocations: 4.062 kB / 332.8 MB, free: 8.098 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001897/0.00824, allocations: 31.88 kB / 332.8 MB, free: 8.066 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.12e-05/0.008311, allocations: 103.2 kB / 332.9 MB, free: 7.953 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001565/0.008468, allocations: 87.88 kB / 333 MB, free: 7.867 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.008469, allocations: 0 / 333 MB, free: 7.867 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.677e-05/0.008516, allocations: 32.36 kB / 333 MB, free: 7.836 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.008836, allocations: 56.89 kB / 333.1 MB, free: 7.781 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000436/0.009272, allocations: 360.8 kB / 333.4 MB, free: 7.391 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.289e-05/0.009334, allocations: 97.25 kB / 333.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.006e-05/0.009364, allocations: 20.48 kB / 333.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.009365, allocations: 0 / 333.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of Templates: time 0.001979/0.01134, allocations: 1.479 MB / 335 MB, free: 5.781 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.125829401426017]