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.001369/0.001369, allocations: 84.98 kB / 19.76 MB, free: 2.023 MB / 14.72 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.001474/0.001474, allocations: 160.6 kB / 23.01 MB, free: 4.957 MB / 14.72 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 1.351/1.351, allocations: 158.6 MB / 184.8 MB, free: 6.18 MB / 174.1 MB " [Timeout remaining time 178] 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.04862/0.04862, allocations: 6.415 MB / 243.4 MB, free: 12.73 MB / 238.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 79.89 kB / 360.8 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09225, allocations: 50.92 MB / 411.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003542/0.09579, allocations: 1.864 MB / 413.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005877/0.09638, allocations: 235.9 kB / 413.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.0965, allocations: 7.938 kB / 413.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.175e-05/0.09659, allocations: 27.73 kB / 413.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.09674, allocations: 39.62 kB / 413.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.09704, allocations: 51.88 kB / 413.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.09733, allocations: 187.2 kB / 414.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.09752, allocations: 70.36 kB / 414.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.491e-05/0.09762, allocations: 75.78 kB / 414.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.09773, allocations: 63.69 kB / 414.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.535e-05/0.09777, allocations: 20 kB / 414.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.124e-05/0.0978, allocations: 16 kB / 414.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.09785, allocations: 51.84 kB / 414.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.09795, allocations: 75.72 kB / 414.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.09821, allocations: 211.1 kB / 414.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09821, allocations: 0 / 414.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09821, allocations: 0 / 414.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.09822, allocations: 0 / 414.7 MB, free: 5.152 MB / 334.1 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.0006829/0.0989, allocations: 382.1 kB / 415.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.09894, allocations: 15.98 kB / 415.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.09899, allocations: 24.8 kB / 415.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.09912, allocations: 126.3 kB / 415.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.09914, allocations: 16.75 kB / 415.3 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/0.09919, allocations: 24.33 kB / 415.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.09949, allocations: 161.2 kB / 415.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.09951, allocations: 192 / 415.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.09953, allocations: 15.94 kB / 415.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.09954, allocations: 4 kB / 415.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.09974, allocations: 107.7 kB / 415.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1007, allocations: 0.5646 MB / 416.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.1011, allocations: 134.5 kB / 416.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.1013, allocations: 80.81 kB / 416.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.1013, allocations: 4 kB / 416.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.1015, allocations: 91.59 kB / 416.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.1015, allocations: 0 / 416.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009154/0.1024, allocations: 444.5 kB / 416.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.1025, allocations: 63.34 kB / 416.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.1026, allocations: 125.8 kB / 417 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.1026, allocations: 29.7 kB / 417.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.357e-05/0.1027, allocations: 140.3 kB / 417.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/0.1028, allocations: 75.41 kB / 417.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.1028, allocations: 45.67 kB / 417.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.103, allocations: 322.8 kB / 417.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.661e-05/0.1031, allocations: 55.91 kB / 417.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1032, allocations: 98.84 kB / 417.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.1035, allocations: 178.6 kB / 418 MB, free: 1.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1035, allocations: 0 / 418 MB, free: 1.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003115/0.1038, allocations: 197.4 kB / 418.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.1038, allocations: 12.16 kB / 418.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1038, allocations: 4 kB / 418.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1038, allocations: 4 kB / 418.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.104, allocations: 51.92 kB / 418.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.104, allocations: 7.938 kB / 418.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.7e-05/0.1041, allocations: 8 kB / 418.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1041, allocations: 11.98 kB / 418.3 MB, free: 1.32 MB / 334.1 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.0001158/0.1042, allocations: 129.8 kB / 418.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.1043, allocations: 19.84 kB / 418.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.868e-05/0.1043, allocations: 20.72 kB / 418.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1043, allocations: 8 kB / 418.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1043, allocations: 3.984 kB / 418.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1043, allocations: 0 / 418.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006151/0.1049, allocations: 432.6 kB / 418.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1049, allocations: 0 / 418.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.1051, allocations: 31.98 kB / 418.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.1051, allocations: 4 kB / 418.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1052, allocations: 4 kB / 418.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1052, allocations: 0 / 418.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1052, allocations: 4 kB / 418.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003825/0.1055, allocations: 303.7 kB / 419.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.317e-05/0.1056, allocations: 7.953 kB / 419.2 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.1056, allocations: 8 kB / 419.2 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.096e-05/0.1057, allocations: 4 kB / 419.2 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.103e-05/0.1057, allocations: 12.02 kB / 419.2 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.1057, allocations: 4 kB / 419.2 MB, free: 288 kB / 334.1 MB Notification: Performance of sorting global known variables: time 7.466e-05/0.1058, allocations: 99.27 kB / 419.3 MB, free: 188 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1058, allocations: 3.938 kB / 419.3 MB, free: 184 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1061, allocations: 36 kB / 419.4 MB, free: 148 kB / 334.1 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 0.0001102/0.1062, allocations: 103.2 kB / 419.5 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002709/0.1065, allocations: 129 kB / 419.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.1065, allocations: 4 kB / 419.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.383e-05/0.1066, allocations: 55.92 kB / 419.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.1068, allocations: 7.938 kB / 419.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.1078, allocations: 0.5643 MB / 420.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.108, allocations: 116 kB / 420.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.16e-05/0.108, allocations: 17.47 kB / 420.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.238e-05/0.1081, allocations: 20.44 kB / 420.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1081, allocations: 0 / 420.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Templates: time 0.004181/0.1122, allocations: 1.002 MB / 421.4 MB, free: 14.1 MB / 350.1 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=480 -s ida -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.287580578005873] Failed to read output from testmodel.py, exit status != 0: 0.12010693293996155 0.135318735 0.033912614 Calling exit ...