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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001176/0.001176, allocations: 187 kB / 16.25 MB, free: 6.629 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.224/1.224, allocations: 205.1 MB / 222.1 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0394/0.0394, allocations: 8.102 MB / 277.6 MB, free: 13.33 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.001287/0.001287, allocations: 67.91 kB / 336.8 MB, free: 26.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07037/0.07167, allocations: 48.29 MB / 385.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002756/0.07446, allocations: 2.039 MB / 387.1 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007755/0.07525, allocations: 0.6048 MB / 387.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.879e-05/0.07532, allocations: 0 / 387.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.481e-05/0.07539, allocations: 19.84 kB / 387.8 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.07552, allocations: 39.64 kB / 387.8 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.07571, allocations: 59.94 kB / 387.9 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000217/0.07594, allocations: 223.1 kB / 388.1 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.07611, allocations: 94.17 kB / 388.2 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.07624, allocations: 87.75 kB / 388.2 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.07635, allocations: 91.62 kB / 388.3 MB, free: 7.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.07639, allocations: 20 kB / 388.4 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.904e-05/0.07643, allocations: 24 kB / 388.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.07647, allocations: 51.83 kB / 388.4 MB, free: 7.051 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.389e-05/0.07656, allocations: 95.59 kB / 388.5 MB, free: 6.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.07676, allocations: 239.4 kB / 388.8 MB, free: 6.723 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.07677, allocations: 0 / 388.8 MB, free: 6.723 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.07678, allocations: 0 / 388.8 MB, free: 6.723 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.07679, allocations: 0 / 388.8 MB, free: 6.723 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.0006075/0.0774, allocations: 0.5009 MB / 389.3 MB, free: 6.164 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.07744, allocations: 15.89 kB / 389.3 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.778e-05/0.07749, allocations: 50.73 kB / 389.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.569e-05/0.07755, allocations: 20.75 kB / 389.3 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.07766, allocations: 192 kB / 389.5 MB, free: 5.844 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.07769, allocations: 16.75 kB / 389.5 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.07773, allocations: 24.36 kB / 389.6 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.07802, allocations: 186 kB / 389.8 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.07804, allocations: 3.984 kB / 389.8 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.07807, allocations: 8 kB / 389.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.07808, allocations: 12 kB / 389.8 MB, free: 5.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.07827, allocations: 109.1 kB / 389.9 MB, free: 5.484 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009614/0.07923, allocations: 0.7279 MB / 390.6 MB, free: 4.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/0.07956, allocations: 247.6 kB / 390.9 MB, free: 4.426 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.07976, allocations: 108.8 kB / 391 MB, free: 4.316 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.07978, allocations: 4 kB / 391 MB, free: 4.312 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.08, allocations: 186.3 kB / 391.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.08001, allocations: 0 / 391.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001201/0.08122, allocations: 0.7947 MB / 391.9 MB, free: 3.234 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.0813, allocations: 136.5 kB / 392.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.293e-05/0.08141, allocations: 137.8 kB / 392.2 MB, free: 2.926 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.08143, allocations: 33.7 kB / 392.2 MB, free: 2.887 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.418e-05/0.0815, allocations: 136.4 kB / 392.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.432e-05/0.08157, allocations: 86.83 kB / 392.5 MB, free: 2.664 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.08165, allocations: 53.7 kB / 392.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.08176, allocations: 330.8 kB / 392.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.08187, allocations: 56.31 kB / 392.9 MB, free: 2.219 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.08202, allocations: 132.6 kB / 393 MB, free: 2.062 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.08231, allocations: 264.5 kB / 393.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.08231, allocations: 0 / 393.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003609/0.08268, allocations: 296.3 kB / 393.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.08272, allocations: 43.81 kB / 393.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.08273, allocations: 3.938 kB / 393.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.08275, allocations: 7.938 kB / 393.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.08296, allocations: 55.92 kB / 393.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.08297, allocations: 7.984 kB / 393.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.159e-05/0.08307, allocations: 12 kB / 393.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.0831, allocations: 12 kB / 393.7 MB, free: 1.32 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.0001559/0.08326, allocations: 175.6 kB / 393.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.0833, allocations: 23.69 kB / 393.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.901e-05/0.08334, allocations: 16.84 kB / 393.9 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.08335, allocations: 4 kB / 393.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.08336, allocations: 0 / 393.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.08337, allocations: 7.969 kB / 393.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008274/0.0842, allocations: 0.6966 MB / 394.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.08421, allocations: 0 / 394.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.08441, allocations: 43.91 kB / 394.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.08442, allocations: 4 kB / 394.7 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.08444, allocations: 8 kB / 394.7 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.08445, allocations: 0 / 394.7 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.08446, allocations: 8 kB / 394.7 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005123/0.08497, allocations: 466.7 kB / 395.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.08503, allocations: 92.95 kB / 395.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.08507, allocations: 12 kB / 395.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.08519, allocations: 11.94 kB / 395.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.08524, allocations: 11.98 kB / 395.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.08527, allocations: 15.94 kB / 395.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.214e-05/0.08533, allocations: 99.25 kB / 395.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08533, allocations: 4 kB / 395.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.08563, allocations: 52 kB / 395.4 MB, free: 15.45 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 0.0007637/0.0864, allocations: 0.9971 MB / 396.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003354/0.08674, allocations: 259.8 kB / 396.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.08675, allocations: 0 / 396.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.08694, allocations: 191.3 kB / 396.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.08719, allocations: 27.67 kB / 396.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.08957, allocations: 2.471 MB / 399.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.08985, allocations: 0.7319 MB / 400.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.893e-05/0.0899, allocations: 17.55 kB / 400.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.968e-05/0.09, allocations: 59.42 kB / 400.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.09001, allocations: 0 / 400.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.1138, allocations: 3.333 MB / 403.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/0.114, allocations: 239.9 kB / 403.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/1.774, allocations: 0 / 403.7 MB, free: 6.996 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)