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.001145/0.001145, allocations: 85.17 kB / 19.87 MB, free: 4.617 MB / 18.57 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.001271/0.001271, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 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.959/0.959, allocations: 158.6 MB / 185.2 MB, free: 2.777 MB / 170.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.04026/0.04026, allocations: 6.41 MB / 244 MB, free: 8.543 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 2.175e-06/2.175e-06, allocations: 0 / 311.2 MB, free: 51.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.841e-05/3.059e-05, allocations: 4.125 kB / 311.2 MB, free: 51.76 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003832/0.003862, allocations: 2.016 MB / 313.2 MB, free: 50.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.00518, allocations: 0.5981 MB / 313.8 MB, free: 50.04 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.005336, allocations: 4.812 kB / 313.8 MB, free: 50.04 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.874e-05/0.005424, allocations: 29.72 kB / 313.8 MB, free: 50.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.005629, allocations: 52.92 kB / 313.9 MB, free: 49.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.005942, allocations: 57.75 kB / 313.9 MB, free: 49.95 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003499/0.006292, allocations: 243 kB / 314.2 MB, free: 49.82 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.006492, allocations: 71.83 kB / 314.3 MB, free: 49.79 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.006797, allocations: 122.3 kB / 314.4 MB, free: 49.74 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.006956, allocations: 70.5 kB / 314.4 MB, free: 49.72 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.643e-05/0.007003, allocations: 20.41 kB / 314.5 MB, free: 49.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.187e-05/0.007044, allocations: 22.75 kB / 314.5 MB, free: 49.72 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.834e-05/0.007093, allocations: 48.17 kB / 314.5 MB, free: 49.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.673e-05/0.007179, allocations: 75.2 kB / 314.6 MB, free: 49.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.007422, allocations: 141.9 kB / 314.7 MB, free: 49.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.007426, allocations: 5.656 kB / 314.7 MB, free: 49.58 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007427, allocations: 0 / 314.7 MB, free: 49.58 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.007432, allocations: 0 / 314.7 MB, free: 49.58 MB / 282.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.0006371/0.008069, allocations: 0.5324 MB / 315.3 MB, free: 49.1 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.008116, allocations: 14.17 kB / 315.3 MB, free: 49.09 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.647e-05/0.008203, allocations: 36.78 kB / 315.3 MB, free: 49.08 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.008303, allocations: 133 kB / 315.5 MB, free: 48.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.008326, allocations: 13.56 kB / 315.5 MB, free: 48.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.008369, allocations: 27.42 kB / 315.5 MB, free: 48.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.008601, allocations: 165.7 kB / 315.7 MB, free: 48.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.008616, allocations: 4.141 kB / 315.7 MB, free: 48.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.008633, allocations: 7.125 kB / 315.7 MB, free: 48.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.008643, allocations: 8.062 kB / 315.7 MB, free: 48.81 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.008753, allocations: 91.06 kB / 315.8 MB, free: 48.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008325/0.009585, allocations: 0.6098 MB / 316.4 MB, free: 48.17 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.009799, allocations: 163.2 kB / 316.5 MB, free: 47.99 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.01003, allocations: 97.34 kB / 316.6 MB, free: 47.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.01004, allocations: 7.984 kB / 316.6 MB, free: 47.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.01027, allocations: 200.2 kB / 316.8 MB, free: 47.65 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 3.436e-06/0.01027, allocations: 0 / 316.8 MB, free: 47.65 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0008408/0.01111, allocations: 0.6828 MB / 317.5 MB, free: 46.89 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.01114, allocations: 144.5 kB / 317.7 MB, free: 46.72 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.826e-05/0.0112, allocations: 190.8 kB / 317.8 MB, free: 46.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.01121, allocations: 33.7 kB / 317.9 MB, free: 46.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.666e-05/0.01126, allocations: 191.4 kB / 318.1 MB, free: 46.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.01129, allocations: 79.31 kB / 318.1 MB, free: 46.21 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/0.01134, allocations: 71.27 kB / 318.2 MB, free: 46.13 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.01139, allocations: 0.5 MB / 318.7 MB, free: 45.62 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.229e-05/0.01142, allocations: 54 kB / 318.8 MB, free: 45.55 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.189e-05/0.01148, allocations: 159.5 kB / 318.9 MB, free: 45.36 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.01161, allocations: 232.9 kB / 319.1 MB, free: 45.08 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.01161, allocations: 0 / 319.1 MB, free: 45.08 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001825/0.01179, allocations: 270.7 kB / 319.4 MB, free: 44.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.01182, allocations: 33.7 kB / 319.4 MB, free: 44.76 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.01182, allocations: 8.25 kB / 319.5 MB, free: 44.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.01183, allocations: 4 kB / 319.5 MB, free: 44.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.01196, allocations: 63.91 kB / 319.5 MB, free: 44.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.01196, allocations: 4 kB / 319.5 MB, free: 44.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.366e-05/0.01201, allocations: 11.94 kB / 319.5 MB, free: 44.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.01202, allocations: 12 kB / 319.5 MB, free: 44.66 MB / 282.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.0001122/0.01214, allocations: 219.9 kB / 319.8 MB, free: 44.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.01216, allocations: 27.89 kB / 319.8 MB, free: 44.4 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.01219, allocations: 20.94 kB / 319.8 MB, free: 44.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01219, allocations: 7.938 kB / 319.8 MB, free: 44.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.01219, allocations: 0 / 319.8 MB, free: 44.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.0122, allocations: 6.469 kB / 319.8 MB, free: 44.37 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004256/0.01262, allocations: 0.6283 MB / 320.5 MB, free: 43.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.01262, allocations: 0 / 320.5 MB, free: 43.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.01275, allocations: 43.97 kB / 320.5 MB, free: 43.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.01276, allocations: 4 kB / 320.5 MB, free: 43.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.01278, allocations: 11.94 kB / 320.5 MB, free: 43.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.01278, allocations: 4.062 kB / 320.5 MB, free: 43.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.01278, allocations: 0 / 320.5 MB, free: 43.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.0131, allocations: 0.5217 MB / 321 MB, free: 43.06 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.467e-05/0.01311, allocations: 15.94 kB / 321.1 MB, free: 43.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.01313, allocations: 11.94 kB / 321.1 MB, free: 43.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.926e-05/0.0132, allocations: 4 kB / 321.1 MB, free: 43.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.01324, allocations: 19.97 kB / 321.1 MB, free: 43.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.01326, allocations: 4 kB / 321.1 MB, free: 43.01 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.941e-05/0.01329, allocations: 140.6 kB / 321.2 MB, free: 42.87 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01329, allocations: 0 / 321.2 MB, free: 42.87 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001937/0.01348, allocations: 52 kB / 321.3 MB, free: 42.82 MB / 282.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 9.197e-05/0.01357, allocations: 120.7 kB / 321.4 MB, free: 42.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001762/0.01375, allocations: 253.8 kB / 321.6 MB, free: 42.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01375, allocations: 0 / 321.6 MB, free: 42.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.325e-05/0.01382, allocations: 175.7 kB / 321.8 MB, free: 42.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.01399, allocations: 12.62 kB / 321.8 MB, free: 42.22 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007493/0.01474, allocations: 0.5433 MB / 322.4 MB, free: 41.65 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.336e-05/0.01477, allocations: 79.98 kB / 322.5 MB, free: 41.55 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.588e-05/0.01481, allocations: 17.47 kB / 322.5 MB, free: 41.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.303e-05/0.01488, allocations: 106.2 kB / 322.6 MB, free: 41.43 MB / 282.7 MB Notification: Performance of SimCode: time 8.52e-07/0.01488, allocations: 0 / 322.6 MB, free: 41.43 MB / 282.7 MB Notification: Performance of Templates: time 0.003671/0.01856, allocations: 1.78 MB / 324.4 MB, free: 39.71 MB / 282.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.8107334091328084]