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.001305/0.001305, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.001286/0.001286, allocations: 173.9 kB / 23.21 MB, free: 1.355 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.8477/0.8477, allocations: 158.6 MB / 185 MB, free: 3 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.02444/0.02444, allocations: 6.407 MB / 243.6 MB, free: 8.98 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.943e-06/1.943e-06, allocations: 0 / 361.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.793e-05/2.988e-05, allocations: 2.281 kB / 361.1 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003049/0.003078, allocations: 1.918 MB / 363 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009933/0.004072, allocations: 0.5814 MB / 363.6 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.004193, allocations: 4 kB / 363.6 MB, free: 1.375 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.759e-05/0.004261, allocations: 35.72 kB / 363.6 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.004423, allocations: 47.45 kB / 363.7 MB, free: 1.293 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.004679, allocations: 63.83 kB / 363.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.004931, allocations: 231 kB / 364 MB, free: 1.004 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.005104, allocations: 70.36 kB / 364 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.005334, allocations: 135.7 kB / 364.2 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.005446, allocations: 67.78 kB / 364.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.005478, allocations: 24 kB / 364.2 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.496e-05/0.005503, allocations: 24 kB / 364.3 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.542e-05/0.005538, allocations: 39.89 kB / 364.3 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.528e-05/0.005613, allocations: 75.83 kB / 364.4 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.005844, allocations: 243.2 kB / 364.6 MB, free: 348 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.005846, allocations: 0 / 364.6 MB, free: 348 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.005848, allocations: 0 / 364.6 MB, free: 348 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.005853, allocations: 0 / 364.6 MB, free: 348 kB / 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.0006671/0.00652, allocations: 439.2 kB / 365 MB, free: 15.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.006567, allocations: 11.98 kB / 365.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.953e-05/0.006626, allocations: 24.84 kB / 365.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.006755, allocations: 121.6 kB / 365.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.006781, allocations: 20.75 kB / 365.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.006825, allocations: 24.31 kB / 365.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.00715, allocations: 216.7 kB / 365.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.007171, allocations: 4.125 kB / 365.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.007191, allocations: 8.375 kB / 365.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.007199, allocations: 7.938 kB / 365.5 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002197/0.007419, allocations: 146.9 kB / 365.6 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.008711, allocations: 0.5704 MB / 366.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.009052, allocations: 176.2 kB / 366.4 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.009265, allocations: 126.5 kB / 366.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.009278, allocations: 0 / 366.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.009577, allocations: 216.6 kB / 366.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.813e-06/0.009579, allocations: 0 / 366.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=25): time 0.001214/0.01079, allocations: 0.803 MB / 367.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.807e-05/0.01087, allocations: 136.5 kB / 367.6 MB, free: 13.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.01097, allocations: 135.6 kB / 367.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.011, allocations: 37.64 kB / 367.8 MB, free: 12.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.871e-05/0.01107, allocations: 140.6 kB / 367.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.715e-05/0.01114, allocations: 79.33 kB / 368 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/0.01122, allocations: 57.7 kB / 368.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.01133, allocations: 334.8 kB / 368.4 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.01144, allocations: 90 kB / 368.5 MB, free: 12.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.0116, allocations: 162.1 kB / 368.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.0119, allocations: 272.2 kB / 368.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.01191, allocations: 0 / 368.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004002/0.01231, allocations: 330 kB / 369.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.01234, allocations: 33.7 kB / 369.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.01235, allocations: 4 kB / 369.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.01237, allocations: 4 kB / 369.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.01256, allocations: 59.91 kB / 369.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.01257, allocations: 4 kB / 369.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.85e-05/0.01266, allocations: 19.92 kB / 369.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.01267, allocations: 12 kB / 369.4 MB, free: 11.18 MB / 298.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.0002049/0.01288, allocations: 187.7 kB / 369.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.0129, allocations: 15.95 kB / 369.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.508e-05/0.01294, allocations: 12.94 kB / 369.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.01294, allocations: 4 kB / 369.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.01295, allocations: 4 kB / 369.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.01296, allocations: 3.938 kB / 369.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007893/0.01375, allocations: 0.648 MB / 370.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.01375, allocations: 8.062 kB / 370.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.01391, allocations: 43.92 kB / 370.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.01391, allocations: 3.938 kB / 370.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.01394, allocations: 11.98 kB / 370.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.01394, allocations: 4 kB / 370.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01394, allocations: 0 / 370.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005526/0.01449, allocations: 0.5241 MB / 370.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.984e-05/0.01451, allocations: 15.84 kB / 370.8 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.01454, allocations: 8 kB / 370.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.038e-05/0.01463, allocations: 12 kB / 370.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.01468, allocations: 16.02 kB / 370.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.01471, allocations: 12 kB / 370.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.01477, allocations: 110.6 kB / 371 MB, free: 9.434 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01477, allocations: 0 / 371 MB, free: 9.434 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003248/0.01509, allocations: 52 kB / 371.1 MB, free: 9.383 MB / 298.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 0.0001266/0.01522, allocations: 107.2 kB / 371.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.01558, allocations: 292 kB / 371.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.01558, allocations: 0.5 kB / 371.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.01575, allocations: 192.9 kB / 371.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.01603, allocations: 26.53 kB / 371.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009466/0.01697, allocations: 0.5779 MB / 372.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.01707, allocations: 116.2 kB / 372.3 MB, free: 7.973 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.01712, allocations: 20.5 kB / 372.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01712, allocations: 4 kB / 372.4 MB, free: 7.949 MB / 298.7 MB Notification: Performance of Templates: time 0.00413/0.02125, allocations: 2.24 MB / 374.6 MB, free: 5.703 MB / 298.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.1984443087130785] Failed to read output from testmodel.py, exit status != 0: 0.028020597994327545 0.041444564 0.033072095 Calling exit ...