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.000886/0.0008859, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.006414/0.006414, allocations: 170.4 kB / 16.26 MB, free: 6.676 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.663/1.663, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04101/0.04101, allocations: 8.111 MB / 278.8 MB, free: 13.11 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.0005365/0.0005365, allocations: 12 kB / 339 MB, free: 26.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.122, allocations: 49.27 MB / 388.3 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002403/0.1244, allocations: 1.692 MB / 389.9 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1255, allocations: 0.6048 MB / 390.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.745e-05/0.1256, allocations: 0 / 390.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.669e-05/0.1257, allocations: 19.84 kB / 390.6 MB, free: 6.918 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.1258, allocations: 35.69 kB / 390.6 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.1261, allocations: 51.95 kB / 390.7 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1263, allocations: 215.1 kB / 390.9 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.1265, allocations: 74.75 kB / 390.9 MB, free: 6.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.1267, allocations: 75.77 kB / 391 MB, free: 6.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1268, allocations: 83.56 kB / 391.1 MB, free: 6.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.1269, allocations: 12 kB / 391.1 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.997e-05/0.1269, allocations: 12 kB / 391.1 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.223e-05/0.127, allocations: 35.83 kB / 391.2 MB, free: 6.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.1271, allocations: 121.2 kB / 391.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.1274, allocations: 219.4 kB / 391.5 MB, free: 5.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1274, allocations: 0 / 391.5 MB, free: 5.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.1274, allocations: 0 / 391.5 MB, free: 5.996 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1274, allocations: 0 / 391.5 MB, free: 5.996 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.0007473/0.1281, allocations: 477 kB / 392 MB, free: 5.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.1282, allocations: 12.03 kB / 392 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.857e-05/0.1283, allocations: 50.73 kB / 392 MB, free: 5.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.075e-05/0.1283, allocations: 28.66 kB / 392 MB, free: 5.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.1285, allocations: 180.2 kB / 392.2 MB, free: 5.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.1285, allocations: 20.69 kB / 392.2 MB, free: 5.141 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.1286, allocations: 24.28 kB / 392.3 MB, free: 5.117 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003549/0.1289, allocations: 194 kB / 392.5 MB, free: 4.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.129, allocations: 3.938 kB / 392.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.129, allocations: 12 kB / 392.5 MB, free: 4.902 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.129, allocations: 4 kB / 392.5 MB, free: 4.898 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.1292, allocations: 113.1 kB / 392.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1304, allocations: 0.7279 MB / 393.3 MB, free: 4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/0.1308, allocations: 243.6 kB / 393.5 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.131, allocations: 112.8 kB / 393.7 MB, free: 3.621 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.131, allocations: 0 / 393.7 MB, free: 3.621 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.1313, allocations: 182.7 kB / 393.8 MB, free: 3.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.163e-06/0.1313, allocations: 0 / 393.8 MB, free: 3.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001294/0.1326, allocations: 0.7948 MB / 394.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.036e-05/0.1327, allocations: 136.5 kB / 394.8 MB, free: 2.379 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1329, allocations: 137.7 kB / 394.9 MB, free: 2.234 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.1329, allocations: 33.7 kB / 394.9 MB, free: 2.195 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.133, allocations: 132.5 kB / 395.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.944e-05/0.133, allocations: 86.83 kB / 395.1 MB, free: 1.977 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.1331, allocations: 33.7 kB / 395.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.1332, allocations: 326.8 kB / 395.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.666e-05/0.1333, allocations: 60.31 kB / 395.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.1334, allocations: 140.4 kB / 395.7 MB, free: 1.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.1337, allocations: 272.4 kB / 396 MB, free: 1.078 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1337, allocations: 0 / 396 MB, free: 1.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004191/0.1342, allocations: 284.2 kB / 396.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.1342, allocations: 44.28 kB / 396.3 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1342, allocations: 4.25 kB / 396.3 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1342, allocations: 4 kB / 396.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.1344, allocations: 63.91 kB / 396.4 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1344, allocations: 4 kB / 396.4 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.961e-05/0.1345, allocations: 8 kB / 396.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.1346, allocations: 16 kB / 396.4 MB, free: 0.6445 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.0002567/0.1348, allocations: 183.3 kB / 396.6 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.1349, allocations: 19.84 kB / 396.6 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.294e-05/0.1349, allocations: 20.78 kB / 396.6 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1349, allocations: 0 / 396.6 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1349, allocations: 0 / 396.6 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.135, allocations: 3.984 kB / 396.6 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000933/0.1359, allocations: 0.7083 MB / 397.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1359, allocations: 3.984 kB / 397.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.1361, allocations: 43.92 kB / 397.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1361, allocations: 4 kB / 397.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.1361, allocations: 4 kB / 397.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1361, allocations: 0 / 397.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1362, allocations: 0 / 397.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005618/0.1367, allocations: 478.7 kB / 397.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.817e-05/0.1368, allocations: 85.02 kB / 397.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/0.1368, allocations: 12 kB / 397.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.137, allocations: 4 kB / 397.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.137, allocations: 15.98 kB / 397.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.1371, allocations: 15.92 kB / 398 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.485e-05/0.1371, allocations: 103.1 kB / 398.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1371, allocations: 4 kB / 398.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.1374, allocations: 52 kB / 398.1 MB, free: 14.77 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.0008423/0.1383, allocations: 0.9932 MB / 399.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003678/0.1387, allocations: 263.7 kB / 399.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1387, allocations: 3.938 kB / 399.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.1389, allocations: 191.3 kB / 399.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.1391, allocations: 23.88 kB / 399.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00269/0.1418, allocations: 2.542 MB / 402.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.1422, allocations: 0.7318 MB / 402.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.783e-05/0.1422, allocations: 21.53 kB / 402.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.753e-05/0.1423, allocations: 55.42 kB / 402.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1423, allocations: 0 / 402.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01472/0.1571, allocations: 3.131 MB / 406.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003264/0.1574, allocations: 239.1 kB / 406.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.122, allocations: 3.953 kB / 406.3 MB, free: 6.461 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)