Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.00137/0.00137, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001109/0.001109, allocations: 177 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8721/0.8721, allocations: 158.6 MB / 185.2 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0358/0.0358, allocations: 6.419 MB / 244 MB, free: 8.613 MB / 234.7 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 262.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.273e-05/2.419e-05, allocations: 2.312 kB / 262.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003372/0.003397, allocations: 1.976 MB / 264.1 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006297/0.004026, allocations: 247.1 kB / 264.3 MB, free: 4.215 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.208e-05/0.004108, allocations: 7.938 kB / 264.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.512e-05/0.004174, allocations: 23.78 kB / 264.4 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.004298, allocations: 47.55 kB / 264.4 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.004514, allocations: 55.81 kB / 264.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.004726, allocations: 191.1 kB / 264.7 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.004886, allocations: 63.08 kB / 264.7 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.005029, allocations: 115.8 kB / 264.8 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.005215, allocations: 59.84 kB / 264.9 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.005e-05/0.005285, allocations: 20 kB / 264.9 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.088e-05/0.005316, allocations: 16 kB / 264.9 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.005347, allocations: 47.84 kB / 265 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.579e-05/0.005402, allocations: 59.89 kB / 265 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.005557, allocations: 131.5 kB / 265.2 MB, free: 3.395 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.005559, allocations: 3.938 kB / 265.2 MB, free: 3.391 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.00556, allocations: 0 / 265.2 MB, free: 3.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.005563, allocations: 4 kB / 265.2 MB, free: 3.387 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0003695/0.005933, allocations: 364.7 kB / 265.5 MB, free: 3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.005962, allocations: 11.98 kB / 265.5 MB, free: 2.988 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.005995, allocations: 28.92 kB / 265.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.538e-05/0.006071, allocations: 129.6 kB / 265.7 MB, free: 2.809 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/0.006114, allocations: 12.75 kB / 265.7 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.006141, allocations: 20.38 kB / 265.7 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.006248, allocations: 117.2 kB / 265.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.006257, allocations: 192 / 265.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.006269, allocations: 12.36 kB / 265.9 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.006275, allocations: 4.375 kB / 265.9 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.915e-05/0.006335, allocations: 59.36 kB / 265.9 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005429/0.006877, allocations: 487.6 kB / 266.4 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.007032, allocations: 110.4 kB / 266.5 MB, free: 1.957 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.716e-05/0.00711, allocations: 60.81 kB / 266.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-06/0.007117, allocations: 0 / 266.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000157/0.007274, allocations: 75.36 kB / 266.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.007275, allocations: 3.938 kB / 266.6 MB, free: 1.805 MB / 250.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004618/0.007737, allocations: 349 kB / 267 MB, free: 1.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.007766, allocations: 51.41 kB / 267 MB, free: 1.367 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.596e-05/0.007822, allocations: 134.6 kB / 267.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.007833, allocations: 29.7 kB / 267.2 MB, free: 1.188 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.007878, allocations: 136.3 kB / 267.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.007907, allocations: 67.42 kB / 267.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.007948, allocations: 45.69 kB / 267.4 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.008017, allocations: 330.7 kB / 267.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.181e-05/0.008039, allocations: 19.98 kB / 267.8 MB, free: 0.582 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.743e-05/0.008086, allocations: 78.84 kB / 267.9 MB, free: 492 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.334e-05/0.00818, allocations: 126.6 kB / 268 MB, free: 340 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.008182, allocations: 4 kB / 268 MB, free: 336 kB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001193/0.008301, allocations: 133.4 kB / 268.1 MB, free: 196 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.008311, allocations: 4 kB / 268.1 MB, free: 192 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.008317, allocations: 4 kB / 268.1 MB, free: 188 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.00833, allocations: 4 kB / 268.1 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.008439, allocations: 55.91 kB / 268.2 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.008443, allocations: 0 / 268.2 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.281e-05/0.008475, allocations: 11.95 kB / 268.2 MB, free: 116 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.008486, allocations: 12 kB / 268.2 MB, free: 104 kB / 250.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: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 0.0002227/0.008708, allocations: 133.8 kB / 268.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.008722, allocations: 15.98 kB / 268.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.008747, allocations: 12.78 kB / 268.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.008751, allocations: 7.984 kB / 268.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-06/0.008753, allocations: 0 / 268.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.738e-06/0.008756, allocations: 3.984 kB / 268.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.009008, allocations: 306.8 kB / 268.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.009009, allocations: 0 / 268.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.288e-05/0.009102, allocations: 39.91 kB / 268.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.009105, allocations: 4 kB / 268.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.009113, allocations: 8 kB / 268.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.009114, allocations: 0 / 268.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.009115, allocations: 0 / 268.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.009252, allocations: 219.8 kB / 268.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.486e-06/0.009261, allocations: 7.953 kB / 268.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.009272, allocations: 7.938 kB / 269 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.57e-05/0.009308, allocations: 8 kB / 269 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.009329, allocations: 19.84 kB / 269 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.009333, allocations: 0 / 269 MB, free: 15.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.507e-05/0.009349, allocations: 24.83 kB / 269 MB, free: 15.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009349, allocations: 8 kB / 269 MB, free: 15.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000146/0.009495, allocations: 36 kB / 269 MB, free: 15.19 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.343e-05/0.009568, allocations: 80.42 kB / 269.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.00967, allocations: 92.59 kB / 269.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.009673, allocations: 4 kB / 269.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.635e-05/0.009709, allocations: 41.25 kB / 269.3 MB, free: 14.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.905e-05/0.009808, allocations: 7.984 kB / 269.3 MB, free: 14.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.0104, allocations: 409.3 kB / 269.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.916e-05/0.01043, allocations: 75.83 kB / 269.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.122e-05/0.01047, allocations: 17.48 kB / 269.8 MB, free: 14.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.06e-05/0.01052, allocations: 63.38 kB / 269.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01052, allocations: 0 / 269.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Templates: time 0.002377/0.01289, allocations: 1.13 MB / 270.9 MB, free: 13.23 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6180310738272965]