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.0008392/0.0008393, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0009474/0.0009475, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03995/0.03995, allocations: 8.116 MB / 278.5 MB, free: 13.2 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.0005304/0.0005305, allocations: 18.97 kB / 338.4 MB, free: 26.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.0974, allocations: 49.27 MB / 387.6 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002192/0.09964, allocations: 1.642 MB / 389.3 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009646/0.1006, allocations: 0.5856 MB / 389.9 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1008, allocations: 0 / 389.9 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.505e-05/0.1008, allocations: 19.84 kB / 389.9 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.101, allocations: 35.69 kB / 389.9 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.1012, allocations: 47.95 kB / 390 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.1015, allocations: 211.2 kB / 390.2 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.1017, allocations: 66.12 kB / 390.2 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.1018, allocations: 71.77 kB / 390.3 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.102, allocations: 79.69 kB / 390.4 MB, free: 6.828 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.102, allocations: 15.94 kB / 390.4 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.844e-05/0.102, allocations: 12 kB / 390.4 MB, free: 6.801 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.493e-05/0.1021, allocations: 27.91 kB / 390.5 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.143e-05/0.1022, allocations: 65.56 kB / 390.5 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.1024, allocations: 171.8 kB / 390.7 MB, free: 6.535 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1024, allocations: 4 kB / 390.7 MB, free: 6.531 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1024, allocations: 0 / 390.7 MB, free: 6.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1024, allocations: 0 / 390.7 MB, free: 6.531 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.0006475/0.103, allocations: 468.8 kB / 391.1 MB, free: 6.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1031, allocations: 12.03 kB / 391.2 MB, free: 6.004 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.682e-05/0.1031, allocations: 50.55 kB / 391.2 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.1032, allocations: 31.7 kB / 391.2 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.1034, allocations: 190.8 kB / 391.4 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.1034, allocations: 16.38 kB / 391.4 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.1035, allocations: 20 kB / 391.5 MB, free: 5.652 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.1038, allocations: 186 kB / 391.6 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1039, allocations: 3.906 kB / 391.6 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.1039, allocations: 4 kB / 391.6 MB, free: 5.453 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.1039, allocations: 4 kB / 391.7 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.1041, allocations: 113.1 kB / 391.8 MB, free: 5.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.1054, allocations: 0.7358 MB / 392.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.1058, allocations: 239.6 kB / 392.7 MB, free: 4.281 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002461/0.1061, allocations: 118.1 kB / 392.8 MB, free: 4.164 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.1061, allocations: 4 kB / 392.9 MB, free: 4.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.1064, allocations: 183.2 kB / 393 MB, free: 3.957 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.893e-06/0.1065, allocations: 0 / 393 MB, free: 3.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.00152/0.108, allocations: 0.7901 MB / 393.8 MB, free: 3.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.1081, allocations: 140.5 kB / 394 MB, free: 2.922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1083, allocations: 137.6 kB / 394.1 MB, free: 2.781 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.1083, allocations: 33.7 kB / 394.1 MB, free: 2.742 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.91e-05/0.1084, allocations: 136.4 kB / 394.3 MB, free: 2.605 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.1085, allocations: 82.89 kB / 394.3 MB, free: 2.523 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.1085, allocations: 8 kB / 394.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1087, allocations: 322.8 kB / 394.7 MB, free: 2.191 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.1088, allocations: 60.3 kB / 394.7 MB, free: 2.129 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.109, allocations: 136.4 kB / 394.9 MB, free: 1.969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.1092, allocations: 102.9 kB / 395 MB, free: 1.863 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1092, allocations: 3.938 kB / 395 MB, free: 1.859 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004241/0.1096, allocations: 300.1 kB / 395.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.1097, allocations: 37.69 kB / 395.3 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1097, allocations: 0 / 395.3 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.1097, allocations: 4 kB / 395.3 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.1099, allocations: 59.91 kB / 395.3 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1099, allocations: 7.938 kB / 395.4 MB, free: 1.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.1101, allocations: 16.23 kB / 395.4 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.1101, allocations: 16 kB / 395.4 MB, free: 1.41 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,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.1103, allocations: 179.3 kB / 395.6 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.1104, allocations: 23.7 kB / 395.6 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.148e-05/0.1104, allocations: 20.84 kB / 395.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.1104, allocations: 0 / 395.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.1104, allocations: 3.984 kB / 395.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1104, allocations: 0 / 395.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009734/0.1114, allocations: 0.7184 MB / 396.3 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1114, allocations: 0 / 396.3 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.1116, allocations: 35.98 kB / 396.4 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.1117, allocations: 8.062 kB / 396.4 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.1117, allocations: 8 kB / 396.4 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1117, allocations: 3.938 kB / 396.4 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1117, allocations: 0 / 396.4 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.1124, allocations: 462.6 kB / 396.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.639e-05/0.1125, allocations: 88.92 kB / 396.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.238e-05/0.1126, allocations: 15.95 kB / 396.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1127, allocations: 12 kB / 397 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.1128, allocations: 15.92 kB / 397 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.1128, allocations: 11.98 kB / 397 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.104e-05/0.1129, allocations: 95.27 kB / 397.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1129, allocations: 0 / 397.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.1132, allocations: 56 kB / 397.1 MB, free: 15.54 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008458/0.1141, allocations: 0.9968 MB / 398.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000372/0.1145, allocations: 252.3 kB / 398.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1145, allocations: 8 kB / 398.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.1147, allocations: 191.3 kB / 398.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.115, allocations: 16 kB / 398.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.1169, allocations: 1.375 MB / 400 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.1172, allocations: 0.7322 MB / 400.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.308e-05/0.1173, allocations: 13.55 kB / 400.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.318e-05/0.1174, allocations: 59.47 kB / 400.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1174, allocations: 4 kB / 400.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.131, allocations: 3.115 MB / 403.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.1312, allocations: 230.1 kB / 404.1 MB, free: 8.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/1.877, allocations: 0 / 404.1 MB, free: 8.504 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/linux/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) Environment - environmentSimulation: