Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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.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(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009672/0.0009671, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009269/0.0009268, allocations: 192.6 kB / 16.13 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03844/0.03844, allocations: 8.106 MB / 277.4 MB, free: 13.37 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.001215/0.001215, allocations: 59.92 kB / 336.5 MB, free: 26.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09045/0.09168, allocations: 48.29 MB / 384.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.00309/0.09482, allocations: 2.047 MB / 386.8 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008734/0.09571, allocations: 0.6126 MB / 387.5 MB, free: 7.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.475e-05/0.09577, allocations: 4 kB / 387.5 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.068e-05/0.09585, allocations: 19.84 kB / 387.5 MB, free: 7.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.09597, allocations: 39.67 kB / 387.5 MB, free: 7.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.09617, allocations: 55.89 kB / 387.6 MB, free: 7.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.09635, allocations: 219.1 kB / 387.8 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.09652, allocations: 74.75 kB / 387.9 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.09664, allocations: 75.78 kB / 387.9 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.09676, allocations: 87.61 kB / 388 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.09679, allocations: 16 kB / 388 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.35e-05/0.09683, allocations: 16 kB / 388 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.736e-05/0.09688, allocations: 43.78 kB / 388.1 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.09699, allocations: 103.6 kB / 388.2 MB, free: 7.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.09724, allocations: 219.5 kB / 388.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.09726, allocations: 8 kB / 388.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.09726, allocations: 0 / 388.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.09727, allocations: 0 / 388.4 MB, free: 6.988 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006029/0.09788, allocations: 0.4931 MB / 388.9 MB, free: 6.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.09792, allocations: 12.03 kB / 388.9 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.09797, allocations: 16.75 kB / 388.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.09809, allocations: 196 kB / 389.1 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.09812, allocations: 20.75 kB / 389.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.09816, allocations: 28.31 kB / 389.2 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.09845, allocations: 186.2 kB / 389.4 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.09846, allocations: 0 / 389.4 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.09849, allocations: 8 kB / 389.4 MB, free: 5.934 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.0985, allocations: 4 kB / 389.4 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.09868, allocations: 113.1 kB / 389.5 MB, free: 5.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.0997, allocations: 0.724 MB / 390.2 MB, free: 5.035 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.1, allocations: 243.6 kB / 390.4 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.1002, allocations: 112.8 kB / 390.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.1003, allocations: 4 kB / 390.6 MB, free: 4.652 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.1005, allocations: 174.7 kB / 390.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 2.464e-06/0.1005, allocations: 8 kB / 390.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001066/0.1016, allocations: 0.7868 MB / 391.5 MB, free: 3.586 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.1016, allocations: 148.4 kB / 391.7 MB, free: 3.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.675e-05/0.1017, allocations: 137.7 kB / 391.8 MB, free: 3.266 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.1018, allocations: 29.7 kB / 391.8 MB, free: 3.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.512e-05/0.1018, allocations: 132.5 kB / 392 MB, free: 3.098 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.1019, allocations: 82.81 kB / 392 MB, free: 3.016 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-05/0.102, allocations: 57.7 kB / 392.1 MB, free: 2.953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.056e-05/0.1021, allocations: 330.8 kB / 392.4 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.651e-05/0.1022, allocations: 56.31 kB / 392.5 MB, free: 2.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.1023, allocations: 132.4 kB / 392.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.1026, allocations: 272.5 kB / 392.9 MB, free: 2.105 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1026, allocations: 0 / 392.9 MB, free: 2.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003462/0.1029, allocations: 292.1 kB / 393.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.103, allocations: 40.19 kB / 393.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.103, allocations: 15.88 kB / 393.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.103, allocations: 0 / 393.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.1032, allocations: 60.16 kB / 393.3 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.1032, allocations: 11.94 kB / 393.3 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.047e-05/0.1033, allocations: 8 kB / 393.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.1033, allocations: 16 kB / 393.3 MB, free: 1.656 MB / 286.1 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(flow=false fixed = true ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,pulseCounter.count,$PRE.pulseCounter.count,pulseCounter.prev_phi,$PRE.pulseCounter.prev_phi,pulseCounter.next_phi,$PRE.pulseCounter.next_phi,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * 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.0001655/0.1035, allocations: 179.3 kB / 393.5 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.1035, allocations: 15.81 kB / 393.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.041e-05/0.1036, allocations: 24.78 kB / 393.5 MB, free: 1.418 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1036, allocations: 3.938 kB / 393.5 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1036, allocations: 7.984 kB / 393.5 MB, free: 1.406 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1036, allocations: 4 kB / 393.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007801/0.1044, allocations: 0.6888 MB / 394.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1044, allocations: 3.984 kB / 394.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.1046, allocations: 44.05 kB / 394.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.1046, allocations: 4 kB / 394.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.1046, allocations: 8 kB / 394.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1047, allocations: 7.938 kB / 394.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1047, allocations: 0 / 394.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004925/0.1052, allocations: 466.7 kB / 394.7 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.826e-05/0.1052, allocations: 92.92 kB / 394.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.445e-05/0.1053, allocations: 8 kB / 394.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1054, allocations: 4 kB / 394.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.1054, allocations: 19.92 kB / 394.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.1055, allocations: 15.98 kB / 394.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.224e-05/0.1055, allocations: 99.2 kB / 395 MB, free: 15.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1055, allocations: 0 / 395 MB, free: 15.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.1058, allocations: 52 kB / 395 MB, free: 15.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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 9.388e-05/0.1059, allocations: 111.6 kB / 395.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002977/0.1062, allocations: 243.9 kB / 395.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1062, allocations: 0 / 395.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.1064, allocations: 199.2 kB / 395.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.1066, allocations: 16 kB / 395.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009136/0.1075, allocations: 0.6857 MB / 396.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.1078, allocations: 0.7361 MB / 397 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.363e-05/0.1079, allocations: 17.53 kB / 397 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.1079, allocations: 15.44 kB / 397 MB, free: 13.69 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1079, allocations: 0 / 397 MB, free: 13.69 MB / 302.1 MB Notification: Performance of Templates: time 0.003721/0.1117, allocations: 1.523 MB / 398.6 MB, free: 12.18 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)