Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009919/0.0009919, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008849/0.0008849, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.934/0.934, allocations: 173.3 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.398e-05, allocations: 6.25 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002533/0.002557, allocations: 2.105 MB / 270.1 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006628/0.00322, allocations: 0.4986 MB / 270.6 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.488e-05/0.003315, allocations: 4 kB / 270.6 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.003426, allocations: 15.8 kB / 270.6 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.178e-05/0.003488, allocations: 31.72 kB / 270.6 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.003737, allocations: 51.86 kB / 270.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.00397, allocations: 135.4 kB / 270.8 MB, free: 3.605 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.0041, allocations: 37.98 kB / 270.8 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.227e-05/0.004193, allocations: 79.8 kB / 270.9 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.013e-05/0.004263, allocations: 39.89 kB / 271 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.004286, allocations: 12 kB / 271 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.482e-05/0.004301, allocations: 12 kB / 271 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.004325, allocations: 23.91 kB / 271 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.105e-05/0.004366, allocations: 43.84 kB / 271 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.004512, allocations: 91.58 kB / 271.1 MB, free: 3.262 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.004514, allocations: 0 / 271.1 MB, free: 3.262 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.004514, allocations: 4 kB / 271.1 MB, free: 3.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.004518, allocations: 0 / 271.1 MB, free: 3.258 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004595/0.004978, allocations: 452 kB / 271.6 MB, free: 2.781 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.005013, allocations: 16.92 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.089e-05/0.005064, allocations: 24.84 kB / 271.6 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.005235, allocations: 159.9 kB / 271.8 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.005247, allocations: 12.38 kB / 271.8 MB, free: 2.551 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.005278, allocations: 12.38 kB / 271.8 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.00562, allocations: 228.8 kB / 272 MB, free: 2.281 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.005631, allocations: 192 / 272 MB, free: 2.281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.005643, allocations: 4.375 kB / 272 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.005653, allocations: 7.938 kB / 272 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.852e-05/0.005722, allocations: 35.91 kB / 272.1 MB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00049/0.006212, allocations: 0.6407 MB / 272.7 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.00641, allocations: 133.4 kB / 272.8 MB, free: 1.371 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.964e-05/0.00647, allocations: 63.06 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.006491, allocations: 8 kB / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.006511, allocations: 37.39 kB / 272.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.006512, allocations: 0 / 272.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002193/0.006732, allocations: 125.4 kB / 273.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.006785, allocations: 111 kB / 273.2 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.166e-05/0.006877, allocations: 189.8 kB / 273.4 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.006888, allocations: 29.7 kB / 273.4 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.873e-05/0.006947, allocations: 166.6 kB / 273.6 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.006961, allocations: 19.86 kB / 273.6 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.006995, allocations: 35.36 kB / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.439e-05/0.007089, allocations: 0.4924 MB / 274.1 MB, free: 8 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.641e-05/0.007126, allocations: 19.86 kB / 274.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.097e-05/0.007177, allocations: 89.55 kB / 274.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.444e-05/0.007261, allocations: 101.4 kB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.007264, allocations: 4 kB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000106/0.00737, allocations: 101.4 kB / 274.4 MB, free: 15.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.007382, allocations: 8 kB / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.007387, allocations: 0 / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.007404, allocations: 4 kB / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.211e-05/0.007476, allocations: 27.98 kB / 274.5 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.007482, allocations: 3.984 kB / 274.5 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.571e-05/0.007518, allocations: 19.83 kB / 274.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.007525, allocations: 8.219 kB / 274.5 MB, free: 15.55 MB / 266.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.711e-05/0.007592, allocations: 164.5 kB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.007704, allocations: 101.5 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.007732, allocations: 12.78 kB / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.007734, allocations: 4 kB / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.007737, allocations: 0 / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.007741, allocations: 4 kB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.007895, allocations: 156.5 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.007896, allocations: 0 / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.008007, allocations: 43.97 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.00801, allocations: 0 / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.008029, allocations: 8 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.008031, allocations: 3.938 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.008031, allocations: 0 / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002533/0.008285, allocations: 413.4 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.542e-05/0.0083, allocations: 15.88 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.008316, allocations: 4.234 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.153e-05/0.008377, allocations: 4 kB / 275.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.008414, allocations: 15.92 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.00842, allocations: 12.02 kB / 275.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.657e-05/0.008466, allocations: 146.4 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008466, allocations: 0 / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000201/0.008667, allocations: 35.83 kB / 275.6 MB, free: 14.36 MB / 266.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 (15): * Single equations (assignments): 15 * 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 8.086e-05/0.008748, allocations: 99.23 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.008871, allocations: 71.47 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.008872, allocations: 0 / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.107e-05/0.008894, allocations: 16.12 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.00922, allocations: 63.09 kB / 275.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007112/0.009931, allocations: 370.6 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.527e-05/0.009976, allocations: 71.33 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.587e-05/0.01, allocations: 12.92 kB / 276.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.01004, allocations: 20.48 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01004, allocations: 0 / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Templates: time 0.002959/0.013, allocations: 1.331 MB / 277.6 MB, free: 12.29 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8719672840088606]