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.001299/0.001299, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001257/0.001257, allocations: 193.3 kB / 16.25 MB, free: 6.625 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.683/1.683, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04085/0.04085, allocations: 8.1 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.001406/0.001406, allocations: 67.91 kB / 336.7 MB, free: 26.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1273, allocations: 48.3 MB / 385 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003312/0.1307, allocations: 2.043 MB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009696/0.1317, allocations: 0.6009 MB / 387.6 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.756e-05/0.1318, allocations: 7.938 kB / 387.6 MB, free: 7.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.42e-05/0.1319, allocations: 19.84 kB / 387.7 MB, free: 7.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.132, allocations: 43.67 kB / 387.7 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002338/0.1323, allocations: 55.95 kB / 387.8 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.1325, allocations: 223.1 kB / 388 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.1328, allocations: 102 kB / 388.1 MB, free: 7.398 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.133, allocations: 79.78 kB / 388.2 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.1331, allocations: 91.61 kB / 388.2 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.1332, allocations: 24 kB / 388.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.238e-05/0.1332, allocations: 20 kB / 388.3 MB, free: 7.188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.1333, allocations: 47.84 kB / 388.3 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.1334, allocations: 103.6 kB / 388.4 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.1337, allocations: 227.5 kB / 388.7 MB, free: 6.816 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1337, allocations: 0 / 388.7 MB, free: 6.816 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1337, allocations: 0 / 388.7 MB, free: 6.816 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1337, allocations: 0 / 388.7 MB, free: 6.816 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.000778/0.1345, allocations: 0.5086 MB / 389.2 MB, free: 6.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1345, allocations: 12.03 kB / 389.2 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.417e-05/0.1346, allocations: 20.75 kB / 389.2 MB, free: 6.219 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.1348, allocations: 188.1 kB / 389.4 MB, free: 5.996 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.1348, allocations: 12.75 kB / 389.4 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.1348, allocations: 32.3 kB / 389.4 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.1352, allocations: 186.2 kB / 389.6 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.1352, allocations: 4 kB / 389.6 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.1352, allocations: 4 kB / 389.6 MB, free: 5.754 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.1353, allocations: 4 kB / 389.6 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.1355, allocations: 121.1 kB / 389.7 MB, free: 5.633 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.1367, allocations: 0.724 MB / 390.5 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000431/0.1371, allocations: 243.6 kB / 390.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.1374, allocations: 116.7 kB / 390.8 MB, free: 4.469 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.1374, allocations: 0 / 390.8 MB, free: 4.469 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.1377, allocations: 178.7 kB / 391 MB, free: 4.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.343e-06/0.1377, allocations: 3.938 kB / 391 MB, free: 4.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.00131/0.139, allocations: 0.7909 MB / 391.8 MB, free: 3.395 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.198e-05/0.1391, allocations: 132.5 kB / 391.9 MB, free: 3.234 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.1393, allocations: 137.7 kB / 392 MB, free: 3.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.1393, allocations: 33.7 kB / 392.1 MB, free: 3.051 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.645e-05/0.1394, allocations: 140.5 kB / 392.2 MB, free: 2.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/0.1395, allocations: 78.81 kB / 392.3 MB, free: 2.832 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.363e-05/0.1395, allocations: 57.7 kB / 392.3 MB, free: 2.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1397, allocations: 330.8 kB / 392.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.992e-05/0.1398, allocations: 56.31 kB / 392.7 MB, free: 2.383 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.14, allocations: 132.6 kB / 392.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/0.1403, allocations: 260.5 kB / 393.1 MB, free: 1.934 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1403, allocations: 7.938 kB / 393.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003534/0.1406, allocations: 292.1 kB / 393.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.1407, allocations: 36.12 kB / 393.4 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1407, allocations: 11.94 kB / 393.4 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.1407, allocations: 4 kB / 393.5 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.1409, allocations: 55.92 kB / 393.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.141, allocations: 4.062 kB / 393.5 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.487e-05/0.1411, allocations: 16 kB / 393.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1411, allocations: 11.98 kB / 393.5 MB, free: 1.488 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.0001798/0.1413, allocations: 183.3 kB / 393.7 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.1413, allocations: 19.81 kB / 393.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.1414, allocations: 20.78 kB / 393.8 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1414, allocations: 7.938 kB / 393.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1414, allocations: 0 / 393.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1414, allocations: 3.984 kB / 393.8 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.1422, allocations: 0.7044 MB / 394.5 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1422, allocations: 0 / 394.5 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.1424, allocations: 43.91 kB / 394.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1424, allocations: 0 / 394.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.1425, allocations: 16 kB / 394.5 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1425, allocations: 0 / 394.5 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1425, allocations: 0 / 394.5 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005591/0.1431, allocations: 474.6 kB / 395 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.1431, allocations: 92.95 kB / 395.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.1432, allocations: 8 kB / 395.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.1433, allocations: 12 kB / 395.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.1433, allocations: 7.984 kB / 395.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.1434, allocations: 15.98 kB / 395.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.701e-05/0.1434, allocations: 99.2 kB / 395.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1434, allocations: 4 kB / 395.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000293/0.1437, allocations: 56 kB / 395.3 MB, free: 15.61 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.0001282/0.1439, allocations: 111.4 kB / 395.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004135/0.1443, allocations: 263.8 kB / 395.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1443, allocations: 0 / 395.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000209/0.1445, allocations: 191.8 kB / 395.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.1448, allocations: 20.12 kB / 395.9 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.1459, allocations: 0.6797 MB / 396.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.1463, allocations: 0.728 MB / 397.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.447e-05/0.1463, allocations: 21.53 kB / 397.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.1464, allocations: 15.44 kB / 397.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1464, allocations: 0 / 397.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of Templates: time 0.004357/0.1508, allocations: 1.626 MB / 398.9 MB, free: 11.88 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)