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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009387/0.0009387, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001291/0.002229, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001241/0.00225, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8387/0.8387, allocations: 158.6 MB / 171 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.133/0.9717, allocations: 49.5 MB / 220.5 MB, free: 1.449 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.02695/0.02695, allocations: 6.41 MB / 227.7 MB, free: 10.33 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003688/0.03064, allocations: 2.165 MB / 229.8 MB, free: 8.156 MB / 234.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 231 MB, free: 6.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.967e-06/1.006e-05, allocations: 6.312 kB / 231 MB, free: 6.953 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.001886/0.001896, allocations: 2.058 MB / 233.1 MB, free: 4.883 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006995/0.002596, allocations: 0.6238 MB / 233.7 MB, free: 4.25 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.087e-05/0.002667, allocations: 4 kB / 233.7 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.364e-05/0.00272, allocations: 23.73 kB / 233.7 MB, free: 4.223 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.817e-05/0.002808, allocations: 55.48 kB / 233.8 MB, free: 4.168 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000139/0.002947, allocations: 67.78 kB / 233.9 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.003165, allocations: 227 kB / 234.1 MB, free: 3.879 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.003298, allocations: 70.97 kB / 234.2 MB, free: 3.812 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.003448, allocations: 135.8 kB / 234.3 MB, free: 3.68 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.003552, allocations: 67.78 kB / 234.4 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.003582, allocations: 24 kB / 234.4 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.268e-05/0.003605, allocations: 20 kB / 234.4 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.172e-05/0.003637, allocations: 31.88 kB / 234.4 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.407e-05/0.003701, allocations: 67.88 kB / 234.5 MB, free: 3.473 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.003856, allocations: 135.5 kB / 234.6 MB, free: 3.34 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.208e-05/0.003868, allocations: 0 / 234.6 MB, free: 3.34 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003868, allocations: 3.938 kB / 234.6 MB, free: 3.336 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.00388, allocations: 0 / 234.6 MB, free: 3.336 MB / 234.7 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.0004999/0.004379, allocations: 461.8 kB / 235.1 MB, free: 2.855 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.854e-05/0.004408, allocations: 11.89 kB / 235.1 MB, free: 2.844 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.748e-05/0.004455, allocations: 32.92 kB / 235.1 MB, free: 2.812 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.677e-05/0.004542, allocations: 137.5 kB / 235.3 MB, free: 2.652 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.004557, allocations: 12.75 kB / 235.3 MB, free: 2.641 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.004584, allocations: 24.38 kB / 235.3 MB, free: 2.617 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.004737, allocations: 172 kB / 235.5 MB, free: 2.434 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.004747, allocations: 192 / 235.5 MB, free: 2.434 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.004758, allocations: 4.375 kB / 235.5 MB, free: 2.43 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.004763, allocations: 7.938 kB / 235.5 MB, free: 2.422 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.5e-05/0.004838, allocations: 90.91 kB / 235.6 MB, free: 2.328 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000911/0.005749, allocations: 481.3 kB / 236 MB, free: 1.832 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.005947, allocations: 148.1 kB / 236.2 MB, free: 1.672 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.00605, allocations: 94.52 kB / 236.3 MB, free: 1.57 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.006059, allocations: 4 kB / 236.3 MB, free: 1.566 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.006207, allocations: 200.3 kB / 236.5 MB, free: 1.34 MB / 234.7 MB Notification: Performance of pre-optimization done (n=22): time 1.262e-06/0.006208, allocations: 0 / 236.5 MB, free: 1.34 MB / 234.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006813/0.00689, allocations: 0.6714 MB / 237.1 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.006941, allocations: 132.5 kB / 237.3 MB, free: 444 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.422e-05/0.007006, allocations: 138.5 kB / 237.4 MB, free: 292 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.007018, allocations: 29.7 kB / 237.4 MB, free: 256 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.007067, allocations: 144.7 kB / 237.6 MB, free: 108 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.07e-05/0.007107, allocations: 83.3 kB / 237.7 MB, free: 24 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.007169, allocations: 57.67 kB / 237.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.007235, allocations: 330.7 kB / 238 MB, free: 15.63 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.974e-05/0.007275, allocations: 54.02 kB / 238.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.7e-05/0.007342, allocations: 126.2 kB / 238.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.007476, allocations: 219.2 kB / 238.4 MB, free: 15.16 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.007478, allocations: 0 / 238.4 MB, free: 15.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001563/0.007634, allocations: 225.5 kB / 238.7 MB, free: 14.92 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.007666, allocations: 41.64 kB / 238.7 MB, free: 14.87 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.007674, allocations: 8 kB / 238.7 MB, free: 14.86 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.674e-06/0.007681, allocations: 0 / 238.7 MB, free: 14.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.007851, allocations: 80.59 kB / 238.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.007857, allocations: 7.938 kB / 238.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.974e-05/0.007906, allocations: 11.95 kB / 238.8 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.007917, allocations: 16.25 kB / 238.8 MB, free: 14.75 MB / 250.7 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.0001127/0.00803, allocations: 171.3 kB / 239 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.00805, allocations: 19.98 kB / 239 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/0.008079, allocations: 24.92 kB / 239 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.008081, allocations: 0 / 239 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.008082, allocations: 0 / 239 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.008085, allocations: 0 / 239 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003818/0.008467, allocations: 475.5 kB / 239.5 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.00847, allocations: 0 / 239.5 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.008595, allocations: 55.97 kB / 239.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.244e-05/0.008607, allocations: 15.89 kB / 239.6 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.008611, allocations: 7.938 kB / 239.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.008621, allocations: 8 kB / 239.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.008623, allocations: 0 / 239.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.008624, allocations: 0 / 239.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.008865, allocations: 414.1 kB / 240 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.008885, allocations: 19.94 kB / 240 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.65e-05/0.008942, allocations: 15.98 kB / 240 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.008972, allocations: 7.984 kB / 240 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.008988, allocations: 8 kB / 240 MB, free: 13.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.824e-05/0.009006, allocations: 28.77 kB / 240.1 MB, free: 13.4 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009007, allocations: 0 / 240.1 MB, free: 13.4 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001587/0.009165, allocations: 56 kB / 240.1 MB, free: 13.34 MB / 250.7 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 7.283e-05/0.009238, allocations: 88.41 kB / 240.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.009416, allocations: 256 kB / 240.4 MB, free: 12.97 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/0.009424, allocations: 4 kB / 240.5 MB, free: 12.97 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.151e-05/0.009506, allocations: 157.9 kB / 240.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.009638, allocations: 39.97 kB / 240.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.01213, allocations: 0.4997 MB / 241.1 MB, free: 12.21 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.36e-05/0.01218, allocations: 79.98 kB / 241.2 MB, free: 12.12 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.763e-05/0.01221, allocations: 13.48 kB / 241.2 MB, free: 12.11 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.92e-05/0.01229, allocations: 87.36 kB / 241.3 MB, free: 12.02 MB / 250.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01229, allocations: 4 kB / 241.3 MB, free: 12.02 MB / 250.7 MB Notification: Performance of Templates: time 0.003645/0.01594, allocations: 1.888 MB / 243.2 MB, free: 10.12 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile [Timeout 660] (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=240 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.3607690753415227]