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.001084/0.001084, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.00134/0.00134, allocations: 177.3 kB / 15.95 MB, free: 216 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.508/1.508, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04112/0.04112, allocations: 8.097 MB / 278.5 MB, free: 13.23 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.00051/0.00051, allocations: 16 kB / 338.3 MB, free: 26.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09279, allocations: 49.27 MB / 387.6 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002079/0.09492, allocations: 1.564 MB / 389.2 MB, free: 8.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009224/0.09586, allocations: 0.5895 MB / 389.8 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.232e-05/0.09594, allocations: 4 kB / 389.8 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.618e-05/0.09599, allocations: 23.78 kB / 389.8 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.09614, allocations: 47.91 kB / 389.8 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.09635, allocations: 43.94 kB / 389.9 MB, free: 7.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001766/0.09654, allocations: 147.7 kB / 390 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.09673, allocations: 74.16 kB / 390.1 MB, free: 7.121 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.09688, allocations: 67.77 kB / 390.2 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.097, allocations: 83.62 kB / 390.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.09704, allocations: 12 kB / 390.3 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.09708, allocations: 12 kB / 390.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.225e-05/0.09711, allocations: 31.91 kB / 390.3 MB, free: 6.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.176e-05/0.09719, allocations: 65.58 kB / 390.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.09737, allocations: 163.8 kB / 390.5 MB, free: 6.688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.09737, allocations: 0 / 390.5 MB, free: 6.688 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09738, allocations: 0 / 390.5 MB, free: 6.688 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.0974, allocations: 4 kB / 390.5 MB, free: 6.684 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.0006581/0.09806, allocations: 480.8 kB / 391 MB, free: 6.156 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.09811, allocations: 8.031 kB / 391 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.443e-05/0.09817, allocations: 50.55 kB / 391 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.843e-05/0.09822, allocations: 27.72 kB / 391.1 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.09838, allocations: 182.8 kB / 391.3 MB, free: 5.844 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.09842, allocations: 20.31 kB / 391.3 MB, free: 5.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.09846, allocations: 20 kB / 391.3 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.09878, allocations: 178.1 kB / 391.5 MB, free: 5.621 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.0988, allocations: 3.906 kB / 391.5 MB, free: 5.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.09883, allocations: 12 kB / 391.5 MB, free: 5.605 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.09885, allocations: 4 kB / 391.5 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.09905, allocations: 117.1 kB / 391.6 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.1002, allocations: 0.7318 MB / 392.3 MB, free: 4.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003927/0.1006, allocations: 251.5 kB / 392.6 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.1007, allocations: 0 / 392.6 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.1009, allocations: 179.3 kB / 392.8 MB, free: 4.223 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.101, allocations: 0 / 392.8 MB, free: 4.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001323/0.1023, allocations: 0.8808 MB / 393.6 MB, free: 3.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.736e-05/0.1024, allocations: 140.5 kB / 393.8 MB, free: 3.082 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.1025, allocations: 133.8 kB / 393.9 MB, free: 2.941 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.1026, allocations: 29.7 kB / 393.9 MB, free: 2.906 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.087e-05/0.1027, allocations: 140.4 kB / 394.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.647e-05/0.1027, allocations: 82.89 kB / 394.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.102e-05/0.1028, allocations: 7.938 kB / 394.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1029, allocations: 326.8 kB / 394.5 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.103, allocations: 64.23 kB / 394.5 MB, free: 2.281 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1032, allocations: 144.4 kB / 394.7 MB, free: 2.113 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.1034, allocations: 102.9 kB / 394.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1034, allocations: 4 kB / 394.8 MB, free: 2.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006079/0.104, allocations: 300.1 kB / 395.1 MB, free: 1.699 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.051e-05/0.104, allocations: 36.36 kB / 395.1 MB, free: 1.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.1041, allocations: 4 kB / 395.1 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.1041, allocations: 7.938 kB / 395.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.1043, allocations: 59.91 kB / 395.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.1044, allocations: 4 kB / 395.2 MB, free: 1.586 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.999e-05/0.1045, allocations: 12 kB / 395.2 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.1045, allocations: 8.25 kB / 395.2 MB, free: 1.566 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.0002519/0.1048, allocations: 183.4 kB / 395.4 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.1048, allocations: 27.75 kB / 395.4 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.185e-05/0.1049, allocations: 12.84 kB / 395.4 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1049, allocations: 4 kB / 395.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1049, allocations: 0 / 395.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1049, allocations: 0 / 395.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009671/0.1059, allocations: 0.7006 MB / 396.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1059, allocations: 0 / 396.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.1061, allocations: 39.97 kB / 396.2 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1061, allocations: 4 kB / 396.2 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.1061, allocations: 8 kB / 396.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.1061, allocations: 0 / 396.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1061, allocations: 8 kB / 396.2 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/0.1068, allocations: 498 kB / 396.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.1068, allocations: 96.86 kB / 396.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.694e-05/0.1069, allocations: 8 kB / 396.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.107, allocations: 12 kB / 396.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.1071, allocations: 11.98 kB / 396.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/0.1071, allocations: 12 kB / 396.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.098e-05/0.1072, allocations: 99.25 kB / 396.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1072, allocations: 3.938 kB / 396.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1075, allocations: 56 kB / 397 MB, free: 15.66 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.001032/0.1086, allocations: 1.165 MB / 398.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003952/0.109, allocations: 260.3 kB / 398.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.109, allocations: 4.062 kB / 398.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.1092, allocations: 199.2 kB / 398.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.1094, allocations: 11.94 kB / 398.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.1121, allocations: 2.579 MB / 401.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.1125, allocations: 0.7361 MB / 401.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.977e-05/0.1126, allocations: 17.55 kB / 401.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.1127, allocations: 63.17 kB / 402 MB, free: 10.45 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1127, allocations: 0 / 402 MB, free: 10.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.1277, allocations: 3.016 MB / 405 MB, free: 7.562 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002389/0.128, allocations: 232 kB / 405.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/1.942, allocations: 0 / 405.2 MB, free: 7.309 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: