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.0008128/0.0008128, allocations: 86.88 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.0009731/0.0009734, 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.54/1.54, 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.05428/0.05428, allocations: 8.107 MB / 278.5 MB, free: 13.21 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.0005607/0.0005607, allocations: 20 kB / 338.3 MB, free: 27.03 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.09646, allocations: 49.28 MB / 387.6 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.00273/0.09927, allocations: 1.642 MB / 389.2 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.1007, allocations: 0.5856 MB / 389.8 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.101, allocations: 4 kB / 389.8 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.1011, allocations: 15.84 kB / 389.8 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.1014, allocations: 39.69 kB / 389.8 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.1018, allocations: 47.89 kB / 389.9 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004669/0.1023, allocations: 211.2 kB / 390.1 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002911/0.1026, allocations: 62.2 kB / 390.2 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003034/0.1029, allocations: 75.77 kB / 390.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.1031, allocations: 75.69 kB / 390.3 MB, free: 6.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-05/0.1032, allocations: 12 kB / 390.3 MB, free: 6.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.168e-05/0.1033, allocations: 12 kB / 390.3 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.927e-05/0.1033, allocations: 35.83 kB / 390.4 MB, free: 6.871 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.1034, allocations: 57.64 kB / 390.4 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002673/0.1037, allocations: 167.8 kB / 390.6 MB, free: 6.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.1037, allocations: 4 kB / 390.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1037, allocations: 0 / 390.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.1038, allocations: 0 / 390.6 MB, free: 6.641 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.0009071/0.1047, allocations: 472.9 kB / 391 MB, free: 6.121 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.1047, allocations: 8.031 kB / 391.1 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.356e-05/0.1048, allocations: 23.72 kB / 391.1 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.105, allocations: 194.7 kB / 391.3 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.1051, allocations: 20.38 kB / 391.3 MB, free: 5.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.686e-05/0.1051, allocations: 27.94 kB / 391.3 MB, free: 5.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003396/0.1055, allocations: 182.1 kB / 391.5 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.1055, allocations: 0 / 391.5 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.1055, allocations: 8 kB / 391.5 MB, free: 5.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1056, allocations: 4 kB / 391.5 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002295/0.1058, allocations: 117.1 kB / 391.6 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.1071, allocations: 0.7357 MB / 392.4 MB, free: 4.703 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004085/0.1075, allocations: 247.6 kB / 392.6 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.1077, allocations: 112.8 kB / 392.7 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.1078, allocations: 0 / 392.7 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.1081, allocations: 183.3 kB / 392.9 MB, free: 4.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.1081, allocations: 0 / 392.9 MB, free: 4.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001342/0.1094, allocations: 0.7862 MB / 393.7 MB, free: 3.254 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.946e-05/0.1095, allocations: 144.5 kB / 393.8 MB, free: 3.082 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1097, allocations: 137.5 kB / 393.9 MB, free: 2.941 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.1097, allocations: 33.7 kB / 394 MB, free: 2.902 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1098, allocations: 136.4 kB / 394.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.919e-05/0.1099, allocations: 82.91 kB / 394.2 MB, free: 2.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.1099, allocations: 4 kB / 394.2 MB, free: 2.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1101, allocations: 326.8 kB / 394.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.1102, allocations: 60.31 kB / 394.6 MB, free: 2.289 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.1104, allocations: 128.4 kB / 394.7 MB, free: 2.137 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.1106, allocations: 114.9 kB / 394.8 MB, free: 2.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1106, allocations: 0 / 394.8 MB, free: 2.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004566/0.111, allocations: 296.2 kB / 395.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.38e-05/0.1111, allocations: 40.34 kB / 395.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1111, allocations: 4 kB / 395.1 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.1111, allocations: 4 kB / 395.1 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.1114, allocations: 55.91 kB / 395.2 MB, free: 1.613 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.1114, allocations: 4 kB / 395.2 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.1115, allocations: 16 kB / 395.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.1115, allocations: 8 kB / 395.2 MB, free: 1.586 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.0002282/0.1118, allocations: 187.5 kB / 395.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.1118, allocations: 19.77 kB / 395.4 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.1119, allocations: 16.84 kB / 395.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1119, allocations: 7.938 kB / 395.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1119, allocations: 0 / 395.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1119, allocations: 3.984 kB / 395.5 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009444/0.1128, allocations: 0.7006 MB / 396.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1129, allocations: 4 kB / 396.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.1131, allocations: 43.91 kB / 396.2 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1131, allocations: 0 / 396.2 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.1131, allocations: 11.98 kB / 396.2 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1131, allocations: 12 kB / 396.2 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1131, allocations: 0 / 396.2 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005806/0.1137, allocations: 466.5 kB / 396.7 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.705e-05/0.1138, allocations: 92.92 kB / 396.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.1138, allocations: 15.95 kB / 396.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.114, allocations: 12 kB / 396.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.114, allocations: 11.98 kB / 396.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.114, allocations: 15.98 kB / 396.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.821e-05/0.1141, allocations: 95.27 kB / 396.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1141, allocations: 0 / 396.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.1145, allocations: 52 kB / 397 MB, free: 15.7 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.0001245/0.1146, allocations: 107.2 kB / 397.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.115, allocations: 255.8 kB / 397.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.115, allocations: 0 / 397.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.1152, allocations: 195.3 kB / 397.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.1155, allocations: 12 kB / 397.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.1166, allocations: 0.7466 MB / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.117, allocations: 0.7322 MB / 399 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.592e-05/0.117, allocations: 17.53 kB / 399 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.1171, allocations: 19.44 kB / 399 MB, free: 13.54 MB / 302.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1171, allocations: 0 / 399 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Templates: time 0.004591/0.1217, allocations: 1.467 MB / 400.5 MB, free: 12.08 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: