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.007095/0.007095, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001362/0.001363, allocations: 197.5 kB / 16.68 MB, free: 5.93 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.728/1.728, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04494/0.04494, allocations: 8.12 MB / 278 MB, free: 13.07 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.001646/0.001646, allocations: 67.91 kB / 386.7 MB, free: 9.016 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3905, allocations: 48.29 MB / 435 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003398/0.394, allocations: 1.989 MB / 437 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.3951, allocations: 0.6062 MB / 437.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.594e-05/0.3952, allocations: 3.375 kB / 437.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.145e-05/0.3953, allocations: 29.2 kB / 437.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.3955, allocations: 47.64 kB / 437.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.3958, allocations: 66.64 kB / 437.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003517/0.3962, allocations: 223.8 kB / 437.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.3964, allocations: 99.27 kB / 438 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.3966, allocations: 89.78 kB / 438.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.3968, allocations: 95.67 kB / 438.2 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.63e-05/0.3969, allocations: 21 kB / 438.2 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.415e-05/0.3969, allocations: 21.44 kB / 438.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.235e-05/0.397, allocations: 41.36 kB / 438.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3971, allocations: 104.7 kB / 438.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003801/0.3975, allocations: 231.7 kB / 438.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.3975, allocations: 0.7969 kB / 438.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3975, allocations: 1.469 kB / 438.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.3975, allocations: 0 / 438.6 MB, free: 5.461 MB / 318.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.0008262/0.3984, allocations: 0.4937 MB / 439.1 MB, free: 5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3984, allocations: 9.438 kB / 439.1 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.606e-05/0.3985, allocations: 23.84 kB / 439.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3987, allocations: 182.5 kB / 439.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.3987, allocations: 17.66 kB / 439.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.001e-05/0.3988, allocations: 32.23 kB / 439.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.3994, allocations: 191.4 kB / 439.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.3994, allocations: 1.031 kB / 439.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.3994, allocations: 10.09 kB / 439.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.3994, allocations: 5.297 kB / 439.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002746/0.3997, allocations: 113.5 kB / 439.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.4009, allocations: 0.7173 MB / 440.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/0.4014, allocations: 246.3 kB / 440.7 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.4016, allocations: 114.2 kB / 440.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.4016, allocations: 2 kB / 440.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.402, allocations: 177.1 kB / 441 MB, free: 3.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.754e-06/0.402, allocations: 0 / 441 MB, free: 3.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.00149/0.4035, allocations: 0.8041 MB / 441.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/0.4036, allocations: 135.6 kB / 441.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.4037, allocations: 132.4 kB / 442 MB, free: 2.871 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.4037, allocations: 33.38 kB / 442 MB, free: 2.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.4038, allocations: 139.3 kB / 442.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/0.4039, allocations: 78.52 kB / 442.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.806e-05/0.404, allocations: 54.02 kB / 442.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.994e-05/0.404, allocations: 328.2 kB / 442.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.4042, allocations: 66.12 kB / 442.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.4043, allocations: 130.1 kB / 442.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.4046, allocations: 266 kB / 443.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.4046, allocations: 4 kB / 443.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004087/0.4051, allocations: 298.7 kB / 443.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.4051, allocations: 34.12 kB / 443.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.4051, allocations: 9.297 kB / 443.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.4052, allocations: 8.062 kB / 443.4 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.4054, allocations: 58.05 kB / 443.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.4054, allocations: 4.688 kB / 443.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.4055, allocations: 18.41 kB / 443.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.4055, allocations: 13.62 kB / 443.5 MB, free: 1.73 MB / 318.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.0001877/0.4057, allocations: 176.4 kB / 443.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.4058, allocations: 13.53 kB / 443.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.02e-05/0.4058, allocations: 23.42 kB / 443.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4058, allocations: 6.688 kB / 443.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4059, allocations: 0.6094 kB / 443.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4059, allocations: 1.078 kB / 443.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.407, allocations: 0.7053 MB / 444.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.407, allocations: 5.312 kB / 444.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.4072, allocations: 42.23 kB / 444.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.4072, allocations: 1.375 kB / 444.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.4073, allocations: 9.438 kB / 444.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.4073, allocations: 1.375 kB / 444.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4073, allocations: 2.094 kB / 444.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007157/0.408, allocations: 468.1 kB / 445 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.4081, allocations: 84.89 kB / 445 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.4081, allocations: 9.891 kB / 445.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.4082, allocations: 13.92 kB / 445.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.148e-05/0.4083, allocations: 19.77 kB / 445.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.4084, allocations: 10.95 kB / 445.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.142e-05/0.4084, allocations: 100.8 kB / 445.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4085, allocations: 0 / 445.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.4088, allocations: 55.47 kB / 445.3 MB, free: 0.5117 MB / 318.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.0001357/0.409, allocations: 112.7 kB / 445.4 MB, free: 428 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005199/0.4095, allocations: 258.1 kB / 445.6 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4095, allocations: 4.062 kB / 445.6 MB, free: 284 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.4097, allocations: 195.8 kB / 445.8 MB, free: 152 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.41, allocations: 16.34 kB / 445.8 MB, free: 144 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.4113, allocations: 0.5988 MB / 446.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.4118, allocations: 0.7322 MB / 447.2 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.147e-05/0.4119, allocations: 19.27 kB / 447.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.961e-05/0.412, allocations: 18.12 kB / 447.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.412, allocations: 0 / 447.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Templates: time 0.006045/0.418, allocations: 1.692 MB / 448.9 MB, free: 14.79 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (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)