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.001533/0.001533, allocations: 111.6 kB / 16.42 MB, free: 6.457 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.001772/0.001772, allocations: 192.3 kB / 17.35 MB, free: 5.715 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.344/1.344, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04333/0.04333, allocations: 8.121 MB / 278.7 MB, free: 3.934 MB / 222.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.001434/0.001434, allocations: 69.84 kB / 387.4 MB, free: 47.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06162/0.06306, allocations: 48.32 MB / 435.7 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002243/0.06534, allocations: 1.974 MB / 437.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006893/0.06604, allocations: 0.6125 MB / 438.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.969e-05/0.06612, allocations: 4 kB / 438.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.671e-05/0.06619, allocations: 27.72 kB / 438.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.06632, allocations: 51.56 kB / 438.3 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.06651, allocations: 63.86 kB / 438.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.0667, allocations: 227.1 kB / 438.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.06686, allocations: 105.9 kB / 438.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.06698, allocations: 83.77 kB / 438.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.874e-05/0.06709, allocations: 95.61 kB / 438.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.06712, allocations: 20 kB / 438.9 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.82e-05/0.06716, allocations: 20 kB / 438.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.0672, allocations: 55.78 kB / 439 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.962e-05/0.06728, allocations: 95.59 kB / 439.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.06746, allocations: 235.2 kB / 439.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.06747, allocations: 0 / 439.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.06748, allocations: 0 / 439.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.06749, allocations: 4 kB / 439.3 MB, free: 4.871 MB / 318.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.000531/0.06803, allocations: 0.4931 MB / 439.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.06807, allocations: 12.03 kB / 439.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.06812, allocations: 20.66 kB / 439.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.891e-05/0.0682, allocations: 188.1 kB / 440 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.06822, allocations: 12.75 kB / 440.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.06827, allocations: 28.28 kB / 440.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.06851, allocations: 186.2 kB / 440.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.06853, allocations: 0 / 440.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.06856, allocations: 12 kB / 440.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.06857, allocations: 4 kB / 440.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.06874, allocations: 113.1 kB / 440.4 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008226/0.06957, allocations: 0.7123 MB / 441.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.06985, allocations: 251.5 kB / 441.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.07004, allocations: 112.8 kB / 441.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.07006, allocations: 7.984 kB / 441.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.07025, allocations: 178.7 kB / 441.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.07026, allocations: 0 / 441.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.000944/0.07121, allocations: 0.803 MB / 442.4 MB, free: 1.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.07126, allocations: 140.5 kB / 442.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.049e-05/0.07132, allocations: 133.8 kB / 442.7 MB, free: 1.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.07134, allocations: 29.7 kB / 442.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.09e-05/0.0714, allocations: 136.4 kB / 442.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/0.07145, allocations: 86.83 kB / 443 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.898e-05/0.07151, allocations: 53.7 kB / 443 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.071e-05/0.07156, allocations: 326.8 kB / 443.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.731e-05/0.07165, allocations: 68.31 kB / 443.4 MB, free: 448 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.07176, allocations: 128.6 kB / 443.5 MB, free: 292 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.072, allocations: 264.2 kB / 443.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.07201, allocations: 0 / 443.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003852/0.0724, allocations: 292.3 kB / 444.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.07245, allocations: 41.62 kB / 444.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.07246, allocations: 4 kB / 444.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.07248, allocations: 7.938 kB / 444.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.0727, allocations: 55.92 kB / 444.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.07272, allocations: 11.92 kB / 444.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.07282, allocations: 15.91 kB / 444.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.07285, allocations: 12.08 kB / 444.2 MB, free: 15.54 MB / 334.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.0001752/0.07303, allocations: 179.9 kB / 444.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.07306, allocations: 11.91 kB / 444.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.038e-05/0.07311, allocations: 20.78 kB / 444.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.07312, allocations: 3.984 kB / 444.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.07313, allocations: 0 / 444.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.07319, allocations: 88.92 kB / 444.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.07323, allocations: 8 kB / 444.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.628e-05/0.07332, allocations: 8 kB / 444.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.07337, allocations: 15.98 kB / 444.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005888/0.07397, allocations: 434 kB / 445 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005683/0.07455, allocations: 0.5235 MB / 445.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001426/0.0747, allocations: 131.9 kB / 445.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.804e-05/0.07477, allocations: 102.8 kB / 445.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of Backend: time 3.1e-07/0.07477, allocations: 0 / 445.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004845/0.07526, allocations: 283.3 kB / 446 MB, free: 13.66 MB / 334.1 MB Notification: Performance of SimCode: time 0.0009017/0.07617, allocations: 1.039 MB / 447 MB, free: 12.56 MB / 334.1 MB Notification: Performance of Templates: time 0.004097/0.08028, allocations: 1.834 MB / 448.9 MB, free: 10.73 MB / 334.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)