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.0008506/0.0008506, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.005139/0.005139, allocations: 169.7 kB / 16.27 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.783/1.783, allocations: 205.4 MB / 222.4 MB, free: 5.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04061/0.04061, allocations: 8.118 MB / 278.9 MB, free: 13.34 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.0005718/0.0005719, allocations: 16 kB / 338.9 MB, free: 26.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1159, allocations: 49.28 MB / 388.2 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003126/0.1191, allocations: 1.688 MB / 389.8 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1207, allocations: 0.6049 MB / 390.4 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.1209, allocations: 4 kB / 390.5 MB, free: 7.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.463e-05/0.121, allocations: 23.8 kB / 390.5 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.1213, allocations: 39.67 kB / 390.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.1216, allocations: 51.95 kB / 390.6 MB, free: 6.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.1219, allocations: 215.1 kB / 390.8 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.1222, allocations: 82.73 kB / 390.9 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.1224, allocations: 71.7 kB / 390.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.1226, allocations: 83.62 kB / 391 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.429e-05/0.1226, allocations: 8 kB / 391 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.579e-05/0.1227, allocations: 12 kB / 391 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.842e-05/0.1227, allocations: 31.86 kB / 391.1 MB, free: 6.465 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.1229, allocations: 117.3 kB / 391.2 MB, free: 6.344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.1232, allocations: 215.5 kB / 391.4 MB, free: 6.133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1233, allocations: 0 / 391.4 MB, free: 6.133 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.1233, allocations: 7.984 kB / 391.4 MB, free: 6.125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1233, allocations: 0 / 391.4 MB, free: 6.125 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.0007711/0.1241, allocations: 473 kB / 391.9 MB, free: 5.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.1241, allocations: 8.031 kB / 391.9 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.421e-05/0.1242, allocations: 24.66 kB / 391.9 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.1244, allocations: 180.2 kB / 392.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.1245, allocations: 16.75 kB / 392.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.1245, allocations: 28.28 kB / 392.1 MB, free: 5.316 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.1249, allocations: 190.1 kB / 392.3 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1249, allocations: 7.938 kB / 392.3 MB, free: 5.113 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.1249, allocations: 8 kB / 392.3 MB, free: 5.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1249, allocations: 4 kB / 392.3 MB, free: 5.102 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002027/0.1251, allocations: 121.1 kB / 392.4 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.1263, allocations: 0.724 MB / 393.2 MB, free: 4.199 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/0.1268, allocations: 243.6 kB / 393.4 MB, free: 3.934 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.127, allocations: 112.8 kB / 393.5 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.127, allocations: 7.938 kB / 393.5 MB, free: 3.812 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002796/0.1273, allocations: 174.7 kB / 393.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.1273, allocations: 4 kB / 393.7 MB, free: 3.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.00142/0.1287, allocations: 0.7909 MB / 394.5 MB, free: 2.742 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.666e-05/0.1288, allocations: 132.5 kB / 394.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.129, allocations: 137.7 kB / 394.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.129, allocations: 33.7 kB / 394.8 MB, free: 2.398 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.1291, allocations: 136.5 kB / 394.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.714e-05/0.1292, allocations: 74.91 kB / 395 MB, free: 2.188 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.1292, allocations: 45.64 kB / 395 MB, free: 2.137 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1294, allocations: 326.8 kB / 395.3 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.1295, allocations: 60.3 kB / 395.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.1296, allocations: 136.4 kB / 395.5 MB, free: 1.586 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.13, allocations: 268.4 kB / 395.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.13, allocations: 4 kB / 395.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000399/0.1304, allocations: 288.2 kB / 396.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/0.1304, allocations: 32.36 kB / 396.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1305, allocations: 8.016 kB / 396.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1305, allocations: 4 kB / 396.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.1307, allocations: 60.16 kB / 396.2 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1307, allocations: 7.984 kB / 396.2 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.908e-05/0.1308, allocations: 15.91 kB / 396.2 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.1309, allocations: 15.98 kB / 396.2 MB, free: 0.8438 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.0002413/0.1311, allocations: 187.3 kB / 396.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.1311, allocations: 11.91 kB / 396.4 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.275e-05/0.1312, allocations: 20.78 kB / 396.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.1312, allocations: 7.984 kB / 396.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1312, allocations: 4 kB / 396.4 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1312, allocations: 3.938 kB / 396.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009703/0.1322, allocations: 0.7083 MB / 397.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1322, allocations: 4 kB / 397.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.1325, allocations: 39.98 kB / 397.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-06/0.1326, allocations: 4 kB / 397.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.1326, allocations: 11.98 kB / 397.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.186e-05/0.1326, allocations: 4 kB / 397.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1326, allocations: 0 / 397.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005934/0.1332, allocations: 470.7 kB / 397.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.1333, allocations: 85.02 kB / 397.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.1333, allocations: 8 kB / 397.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.1335, allocations: 12.03 kB / 397.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.1335, allocations: 11.98 kB / 397.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.1336, allocations: 12 kB / 397.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.64e-05/0.1337, allocations: 99.2 kB / 397.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1337, allocations: 4 kB / 397.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.134, allocations: 56 kB / 398 MB, free: 14.96 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.0001526/0.1341, allocations: 123.1 kB / 398.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.1345, allocations: 247.9 kB / 398.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1345, allocations: 0 / 398.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.1347, allocations: 195.7 kB / 398.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.135, allocations: 20.12 kB / 398.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.1361, allocations: 0.7578 MB / 399.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.1364, allocations: 0.7322 MB / 400 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.205e-05/0.1365, allocations: 17.48 kB / 400 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.976e-05/0.1365, allocations: 19.44 kB / 400.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1365, allocations: 4 kB / 400.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Templates: time 0.005063/0.1416, allocations: 1.502 MB / 401.6 MB, free: 11.28 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: