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.001826/0.001826, allocations: 75.75 kB / 19.76 MB, free: 1.871 MB / 14.72 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.002247/0.002247, allocations: 166.8 kB / 23.01 MB, free: 4.594 MB / 14.72 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.316/1.316, allocations: 158.6 MB / 184.8 MB, free: 6.199 MB / 174.1 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.04854/0.04854, allocations: 6.422 MB / 243.4 MB, free: 12.72 MB / 238.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.003725/0.003725, allocations: 71.89 kB / 360.8 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08437/0.08809, allocations: 50.9 MB / 411.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.00331/0.0914, allocations: 1.907 MB / 413.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.0926, allocations: 0.5931 MB / 414.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.09274, allocations: 4 kB / 414.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.231e-05/0.09282, allocations: 23.73 kB / 414.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.093, allocations: 51.55 kB / 414.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.09324, allocations: 63.86 kB / 414.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.09358, allocations: 223.1 kB / 414.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.09375, allocations: 70.36 kB / 414.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.09394, allocations: 87.72 kB / 414.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.09411, allocations: 83.59 kB / 414.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.391e-05/0.09415, allocations: 20 kB / 414.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.546e-05/0.0942, allocations: 28 kB / 414.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.739e-05/0.09425, allocations: 35.86 kB / 414.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.09436, allocations: 91.66 kB / 415 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.09468, allocations: 231.1 kB / 415.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09468, allocations: 0 / 415.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09468, allocations: 0 / 415.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.09469, allocations: 0 / 415.2 MB, free: 4.633 MB / 334.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.0007906/0.09548, allocations: 435.7 kB / 415.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.09552, allocations: 11.98 kB / 415.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.09558, allocations: 28.8 kB / 415.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.09571, allocations: 126.3 kB / 415.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.09574, allocations: 20.75 kB / 415.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.022e-05/0.09578, allocations: 24.33 kB / 415.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.09612, allocations: 220.4 kB / 416.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.09613, allocations: 0 / 416.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.09615, allocations: 12 kB / 416.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.09616, allocations: 4 kB / 416.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.09639, allocations: 142.9 kB / 416.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.09744, allocations: 0.5742 MB / 416.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.0978, allocations: 172.2 kB / 417 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.09807, allocations: 142.4 kB / 417.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.09808, allocations: 0 / 417.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003328/0.09842, allocations: 212.6 kB / 417.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.09842, allocations: 0 / 417.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.00132/0.09974, allocations: 0.7923 MB / 418.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/0.09983, allocations: 148.4 kB / 418.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.09995, allocations: 137.4 kB / 418.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.09997, allocations: 37.64 kB / 418.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.678e-05/0.1001, allocations: 136.7 kB / 418.5 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.1001, allocations: 83.27 kB / 418.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-05/0.1002, allocations: 61.66 kB / 418.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1004, allocations: 322.8 kB / 419 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.1005, allocations: 93.94 kB / 419.1 MB, free: 436 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.1007, allocations: 162.1 kB / 419.3 MB, free: 240 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.101, allocations: 272.2 kB / 419.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.101, allocations: 0 / 419.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004541/0.1015, allocations: 325.9 kB / 419.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.1015, allocations: 37.7 kB / 419.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1015, allocations: 4 kB / 419.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1015, allocations: 3.938 kB / 419.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.1018, allocations: 59.91 kB / 419.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1018, allocations: 4 kB / 419.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.727e-05/0.1019, allocations: 8 kB / 420 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.563e-05/0.1019, allocations: 20 kB / 420 MB, free: 15.45 MB / 350.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.0002006/0.1021, allocations: 187.5 kB / 420.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.1021, allocations: 15.91 kB / 420.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.644e-05/0.1022, allocations: 24.92 kB / 420.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1022, allocations: 3.938 kB / 420.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1022, allocations: 0 / 420.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1022, allocations: 4 kB / 420.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009176/0.1031, allocations: 0.6318 MB / 420.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1031, allocations: 8.047 kB / 420.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.1033, allocations: 39.98 kB / 420.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1033, allocations: 0 / 420.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.1033, allocations: 8 kB / 420.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1033, allocations: 4 kB / 420.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1033, allocations: 0 / 420.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000645/0.104, allocations: 0.5409 MB / 421.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.104, allocations: 7.953 kB / 421.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.104, allocations: 8 kB / 421.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.1042, allocations: 4 kB / 421.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.1042, allocations: 23.97 kB / 421.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.1042, allocations: 12 kB / 421.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.714e-05/0.1043, allocations: 99.2 kB / 421.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1043, allocations: 0 / 421.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000302/0.1046, allocations: 55.94 kB / 421.6 MB, free: 13.67 MB / 350.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 0.0001507/0.1048, allocations: 115.2 kB / 421.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.1052, allocations: 299.2 kB / 422 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1052, allocations: 0.5 kB / 422 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.1054, allocations: 185 kB / 422.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.1056, allocations: 19.97 kB / 422.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1066, allocations: 0.6546 MB / 422.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.1067, allocations: 116.2 kB / 423 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.118e-05/0.1068, allocations: 21.47 kB / 423 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.1068, allocations: 20.5 kB / 423.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1068, allocations: 0 / 423.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Templates: time 0.00465/0.1115, allocations: 1.61 MB / 424.7 MB, free: 10.55 MB / 350.1 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 -s ida -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.43628850299865] Failed to read output from testmodel.py, exit status != 0: 0.1208939019124955 0.274003212 0.176394362 Calling exit ...