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.001209/0.001209, allocations: 104.6 kB / 16.35 MB, free: 5.828 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.001183/0.001183, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.692/1.692, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0409/0.0409, allocations: 8.105 MB / 278.6 MB, free: 3.961 MB / 222.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.001322/0.001322, allocations: 71.91 kB / 338.6 MB, free: 7.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2982, allocations: 48.28 MB / 386.9 MB, free: 51.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003747/0.302, allocations: 1.99 MB / 388.9 MB, free: 50.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.303, allocations: 0.6114 MB / 389.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.105e-05/0.3032, allocations: 4.562 kB / 389.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.551e-05/0.3032, allocations: 26.44 kB / 389.5 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.3034, allocations: 43.36 kB / 389.6 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.3036, allocations: 60.53 kB / 389.6 MB, free: 49.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.3039, allocations: 235.6 kB / 389.9 MB, free: 49.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.3042, allocations: 99.06 kB / 390 MB, free: 49.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.3043, allocations: 89.97 kB / 390.1 MB, free: 49.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.3045, allocations: 92.64 kB / 390.1 MB, free: 49.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.3046, allocations: 25.34 kB / 390.2 MB, free: 49.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.033e-05/0.3046, allocations: 23.28 kB / 390.2 MB, free: 49.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.282e-05/0.3047, allocations: 44.44 kB / 390.2 MB, free: 49.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.3048, allocations: 101.5 kB / 390.3 MB, free: 49.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.3051, allocations: 231 kB / 390.6 MB, free: 49.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3051, allocations: 1.125 kB / 390.6 MB, free: 49.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3051, allocations: 0.7812 kB / 390.6 MB, free: 49.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.3051, allocations: 0 / 390.6 MB, free: 49.26 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.000683/0.3058, allocations: 0.4961 MB / 391.1 MB, free: 48.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3059, allocations: 11.59 kB / 391.1 MB, free: 48.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.424e-05/0.3059, allocations: 18.97 kB / 391.1 MB, free: 48.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.3061, allocations: 183.7 kB / 391.3 MB, free: 48.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.3061, allocations: 21.7 kB / 391.3 MB, free: 48.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.3061, allocations: 18.22 kB / 391.3 MB, free: 48.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.3065, allocations: 192.9 kB / 391.5 MB, free: 48.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3065, allocations: 0.75 kB / 391.5 MB, free: 48.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.3065, allocations: 14.41 kB / 391.5 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3065, allocations: 6.531 kB / 391.5 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.3067, allocations: 113.8 kB / 391.6 MB, free: 48.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.3078, allocations: 0.7219 MB / 392.4 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.3081, allocations: 237.1 kB / 392.6 MB, free: 47.74 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.3084, allocations: 115.4 kB / 392.7 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.3084, allocations: 3.125 kB / 392.7 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.3087, allocations: 181.1 kB / 392.9 MB, free: 47.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.3087, allocations: 1.969 kB / 392.9 MB, free: 47.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001091/0.3098, allocations: 0.8024 MB / 393.7 MB, free: 46.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.3099, allocations: 143.4 kB / 393.8 MB, free: 46.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.144e-05/0.31, allocations: 128 kB / 393.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.31, allocations: 32.61 kB / 394 MB, free: 46.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.31, allocations: 140.3 kB / 394.1 MB, free: 46.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.3101, allocations: 88.86 kB / 394.2 MB, free: 46.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-05/0.3102, allocations: 57.52 kB / 394.3 MB, free: 46.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.151e-05/0.3102, allocations: 324 kB / 394.6 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.3103, allocations: 63.34 kB / 394.6 MB, free: 46.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.3105, allocations: 134 kB / 394.8 MB, free: 46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.3107, allocations: 266.6 kB / 395 MB, free: 45.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3107, allocations: 0 / 395 MB, free: 45.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003952/0.3111, allocations: 296.7 kB / 395.3 MB, free: 45.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.3112, allocations: 34.08 kB / 395.4 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3112, allocations: 6.016 kB / 395.4 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.3112, allocations: 4.125 kB / 395.4 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.3114, allocations: 60.98 kB / 395.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3115, allocations: 5.016 kB / 395.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.753e-05/0.3116, allocations: 9.688 kB / 395.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.3116, allocations: 14.34 kB / 395.4 MB, free: 45.59 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.0001434/0.3117, allocations: 177.2 kB / 395.6 MB, free: 45.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.3118, allocations: 13.25 kB / 395.6 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/0.3118, allocations: 19.56 kB / 395.7 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3118, allocations: 6.016 kB / 395.7 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3118, allocations: 3.938 kB / 395.7 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3118, allocations: 2.422 kB / 395.7 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008062/0.3126, allocations: 0.7073 MB / 396.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.3127, allocations: 1.797 kB / 396.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.3129, allocations: 44.59 kB / 396.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.3129, allocations: 6.391 kB / 396.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.3129, allocations: 4.547 kB / 396.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3129, allocations: 0.6094 kB / 396.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3129, allocations: 1.844 kB / 396.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005033/0.3134, allocations: 484 kB / 396.9 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.3135, allocations: 89.56 kB / 397 MB, free: 44.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.491e-05/0.3135, allocations: 10.25 kB / 397 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.3136, allocations: 6.484 kB / 397 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.3137, allocations: 15.41 kB / 397 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.3137, allocations: 8.312 kB / 397 MB, free: 44.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.765e-05/0.3138, allocations: 108.7 kB / 397.1 MB, free: 44.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3138, allocations: 0 / 397.1 MB, free: 44.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.3141, allocations: 53.38 kB / 397.2 MB, free: 44.36 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 9.243e-05/0.3142, allocations: 128.7 kB / 397.3 MB, free: 44.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003492/0.3145, allocations: 247.1 kB / 397.6 MB, free: 44.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3145, allocations: 0.5 kB / 397.6 MB, free: 44.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.3147, allocations: 196.8 kB / 397.8 MB, free: 44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.315, allocations: 19.16 kB / 397.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009071/0.3159, allocations: 0.601 MB / 398.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.3161, allocations: 0.7321 MB / 399.1 MB, free: 42.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.945e-05/0.3161, allocations: 15.22 kB / 399.1 MB, free: 42.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.3162, allocations: 22.94 kB / 399.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3162, allocations: 0 / 399.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of Templates: time 0.004644/0.3208, allocations: 1.637 MB / 400.8 MB, free: 42.76 MB / 318.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 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)