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.001582/0.001582, allocations: 88.72 kB / 19.44 MB, free: 352 kB / 13.93 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.002146/0.002146, allocations: 157.7 kB / 22.75 MB, free: 1.676 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 1.51/1.51, allocations: 158.6 MB / 184.6 MB, free: 2.875 MB / 170.7 MB " [Timeout remaining time 178] 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.04957/0.04957, allocations: 6.418 MB / 243.3 MB, free: 8.781 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.463e-06/1.463e-06, allocations: 0 / 310 MB, free: 52.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.695e-05/2.841e-05, allocations: 5.391 kB / 310 MB, free: 52.21 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002691/0.002719, allocations: 1.9 MB / 311.9 MB, free: 50.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009761/0.003695, allocations: 0.5922 MB / 312.5 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.209e-05/0.003777, allocations: 3.406 kB / 312.5 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.216e-05/0.003849, allocations: 26.83 kB / 312.5 MB, free: 50.53 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.004003, allocations: 48.05 kB / 312.6 MB, free: 50.49 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002707/0.004274, allocations: 70.73 kB / 312.7 MB, free: 50.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.004517, allocations: 235.9 kB / 312.9 MB, free: 50.33 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.004698, allocations: 67.36 kB / 313 MB, free: 50.3 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.004921, allocations: 131.7 kB / 313.1 MB, free: 50.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.005056, allocations: 68.03 kB / 313.2 MB, free: 50.22 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.005099, allocations: 21.31 kB / 313.2 MB, free: 50.22 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.722e-05/0.005146, allocations: 22.72 kB / 313.2 MB, free: 50.22 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.036e-05/0.005196, allocations: 40.62 kB / 313.2 MB, free: 50.2 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.005299, allocations: 78.77 kB / 313.3 MB, free: 50.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.005604, allocations: 233.5 kB / 313.5 MB, free: 50.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.005607, allocations: 0.5312 kB / 313.5 MB, free: 50.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005608, allocations: 5.781 kB / 313.5 MB, free: 50.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.005614, allocations: 0 / 313.5 MB, free: 50.07 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.000681/0.006295, allocations: 441 kB / 314 MB, free: 49.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.006342, allocations: 13.11 kB / 314 MB, free: 49.69 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.006432, allocations: 33.94 kB / 314 MB, free: 49.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.006535, allocations: 130.9 kB / 314.2 MB, free: 49.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.006563, allocations: 17.59 kB / 314.2 MB, free: 49.53 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.006613, allocations: 23.28 kB / 314.2 MB, free: 49.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.006973, allocations: 209.8 kB / 314.4 MB, free: 49.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.006989, allocations: 4.141 kB / 314.4 MB, free: 49.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.007014, allocations: 16.12 kB / 314.4 MB, free: 49.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.007026, allocations: 9.812 kB / 314.4 MB, free: 49.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.007255, allocations: 139.9 kB / 314.6 MB, free: 49.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.008252, allocations: 0.5788 MB / 315.1 MB, free: 48.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.008592, allocations: 191.1 kB / 315.3 MB, free: 48.8 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.008811, allocations: 126.8 kB / 315.5 MB, free: 48.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.00883, allocations: 2.75 kB / 315.5 MB, free: 48.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.00913, allocations: 210.5 kB / 315.7 MB, free: 48.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.162e-06/0.009131, allocations: 0 / 315.7 MB, free: 48.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.001083/0.01021, allocations: 0.8062 MB / 316.5 MB, free: 47.73 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.01026, allocations: 140.5 kB / 316.6 MB, free: 47.56 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.492e-05/0.01035, allocations: 140.1 kB / 316.7 MB, free: 47.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.01036, allocations: 37.7 kB / 316.8 MB, free: 47.37 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.01042, allocations: 136.7 kB / 316.9 MB, free: 47.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.01046, allocations: 79.28 kB / 317 MB, free: 47.15 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.01052, allocations: 57.7 kB / 317 MB, free: 47.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.048e-05/0.01058, allocations: 334.8 kB / 317.4 MB, free: 46.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-05/0.01068, allocations: 86 kB / 317.5 MB, free: 46.66 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.01079, allocations: 166.1 kB / 317.6 MB, free: 46.46 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.01103, allocations: 263.5 kB / 317.9 MB, free: 46.17 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01103, allocations: 0 / 317.9 MB, free: 46.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003228/0.01135, allocations: 343.7 kB / 318.2 MB, free: 45.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.01138, allocations: 33.95 kB / 318.2 MB, free: 45.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.01139, allocations: 8 kB / 318.3 MB, free: 45.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.01142, allocations: 7.938 kB / 318.3 MB, free: 45.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.01161, allocations: 59.91 kB / 318.3 MB, free: 45.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.01162, allocations: 4 kB / 318.3 MB, free: 45.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.99e-05/0.01172, allocations: 23.88 kB / 318.3 MB, free: 45.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.01174, allocations: 8 kB / 318.4 MB, free: 45.67 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.0001744/0.01191, allocations: 181.2 kB / 318.5 MB, free: 45.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.01195, allocations: 19.95 kB / 318.6 MB, free: 45.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.01199, allocations: 25.56 kB / 318.6 MB, free: 45.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.01199, allocations: 0 / 318.6 MB, free: 45.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.01199, allocations: 4 kB / 318.6 MB, free: 45.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.012, allocations: 3.938 kB / 318.6 MB, free: 45.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006867/0.01269, allocations: 0.6456 MB / 319.2 MB, free: 44.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01269, allocations: 1.812 kB / 319.2 MB, free: 44.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.01287, allocations: 35.98 kB / 319.3 MB, free: 44.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.01288, allocations: 3.938 kB / 319.3 MB, free: 44.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.0129, allocations: 16.06 kB / 319.3 MB, free: 44.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.0129, allocations: 3.984 kB / 319.3 MB, free: 44.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.0129, allocations: 0 / 319.3 MB, free: 44.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.01337, allocations: 0.5333 MB / 319.8 MB, free: 44.1 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.708e-05/0.01338, allocations: 15.84 kB / 319.8 MB, free: 44.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.01342, allocations: 8 kB / 319.8 MB, free: 44.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.01353, allocations: 12 kB / 319.9 MB, free: 44.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.01359, allocations: 12.02 kB / 319.9 MB, free: 44.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.01361, allocations: 12 kB / 319.9 MB, free: 44.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.892e-05/0.01365, allocations: 99.27 kB / 320 MB, free: 43.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01365, allocations: 4 kB / 320 MB, free: 43.94 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003001/0.01395, allocations: 55.98 kB / 320 MB, free: 43.89 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.253e-05/0.01404, allocations: 112 kB / 320.1 MB, free: 43.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.01434, allocations: 295.2 kB / 320.4 MB, free: 43.46 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01434, allocations: 0 / 320.4 MB, free: 43.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.01448, allocations: 188.9 kB / 320.6 MB, free: 43.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.01476, allocations: 21.19 kB / 320.6 MB, free: 43.24 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.0155, allocations: 0.5585 MB / 321.2 MB, free: 42.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.733e-05/0.01558, allocations: 120.2 kB / 321.3 MB, free: 42.51 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.933e-05/0.01563, allocations: 13.48 kB / 321.3 MB, free: 42.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.206e-05/0.01567, allocations: 20.44 kB / 321.3 MB, free: 42.48 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01567, allocations: 4 kB / 321.4 MB, free: 42.48 MB / 282.7 MB Notification: Performance of Templates: time 0.004267/0.01994, allocations: 1.646 MB / 323 MB, free: 40.89 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=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.472087949048728]