Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001312/0.001312, allocations: 81.06 kB / 19.18 MB, free: 2.527 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.001463/0.001463, allocations: 167.6 kB / 22.46 MB, free: 5.359 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.37/1.37, allocations: 158.6 MB / 184.2 MB, free: 6.418 MB / 174.1 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.04683/0.04683, allocations: 6.397 MB / 242.9 MB, free: 12.77 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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 360.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.435e-05/2.576e-05, allocations: 2.281 kB / 360.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002336/0.002361, allocations: 1.879 MB / 362.2 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003877/0.002749, allocations: 231.2 kB / 362.4 MB, free: 8.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.55e-05/0.002824, allocations: 4 kB / 362.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.099e-05/0.002885, allocations: 27.72 kB / 362.5 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.002986, allocations: 43.56 kB / 362.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.003191, allocations: 59.86 kB / 362.6 MB, free: 8.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001547/0.003345, allocations: 199 kB / 362.8 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.003512, allocations: 70.34 kB / 362.8 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.113e-05/0.003604, allocations: 107.8 kB / 362.9 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.29e-05/0.003696, allocations: 59.8 kB / 363 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.003725, allocations: 16 kB / 363 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.726e-05/0.003752, allocations: 20 kB / 363 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.446e-05/0.003787, allocations: 35.91 kB / 363.1 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.54e-05/0.003862, allocations: 75.81 kB / 363.1 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.004038, allocations: 203.4 kB / 363.3 MB, free: 8.039 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.004039, allocations: 4 kB / 363.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.00404, allocations: 0 / 363.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.004047, allocations: 0 / 363.3 MB, free: 8.035 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005635/0.00461, allocations: 386 kB / 363.7 MB, free: 7.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.00465, allocations: 11.98 kB / 363.7 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.004704, allocations: 20.83 kB / 363.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.493e-05/0.004779, allocations: 121.6 kB / 363.9 MB, free: 7.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.004801, allocations: 20.69 kB / 363.9 MB, free: 7.426 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.004839, allocations: 24.38 kB / 363.9 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.00509, allocations: 161.2 kB / 364.1 MB, free: 7.242 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.005109, allocations: 8.078 kB / 364.1 MB, free: 7.234 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.005128, allocations: 8.375 kB / 364.1 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.005134, allocations: 8.375 kB / 364.1 MB, free: 7.219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.005293, allocations: 111.6 kB / 364.2 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008071/0.0061, allocations: 0.5684 MB / 364.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.006374, allocations: 138.2 kB / 364.9 MB, free: 6.359 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.006549, allocations: 96.73 kB / 365 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.006565, allocations: 0 / 365 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001516/0.006716, allocations: 95.31 kB / 365.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.006718, allocations: 0 / 365.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007518/0.007469, allocations: 444.9 kB / 365.5 MB, free: 5.688 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.007504, allocations: 59.41 kB / 365.6 MB, free: 5.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.007571, allocations: 121.3 kB / 365.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.007585, allocations: 29.7 kB / 365.7 MB, free: 5.453 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.755e-05/0.007633, allocations: 140.3 kB / 365.9 MB, free: 5.312 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.007666, allocations: 75.41 kB / 365.9 MB, free: 5.238 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.007719, allocations: 45.72 kB / 366 MB, free: 5.188 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.72e-05/0.007767, allocations: 326.8 kB / 366.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.007834, allocations: 47.97 kB / 366.4 MB, free: 4.812 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.678e-05/0.007921, allocations: 102.8 kB / 366.5 MB, free: 4.688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.008079, allocations: 170.7 kB / 366.6 MB, free: 4.496 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.00808, allocations: 4 kB / 366.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002442/0.008324, allocations: 197.3 kB / 366.8 MB, free: 4.293 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.008338, allocations: 11.98 kB / 366.8 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.008343, allocations: 0 / 366.8 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.008361, allocations: 4 kB / 366.8 MB, free: 4.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.008533, allocations: 56.08 kB / 366.9 MB, free: 4.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.008541, allocations: 8 kB / 366.9 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.192e-05/0.008602, allocations: 8 kB / 366.9 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.008613, allocations: 11.94 kB / 366.9 MB, free: 4.195 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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 7.815e-05/0.008691, allocations: 133.8 kB / 367.1 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.648e-05/0.008708, allocations: 7.953 kB / 367.1 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.154e-05/0.008749, allocations: 20.78 kB / 367.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.008751, allocations: 0 / 367.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.008756, allocations: 3.938 kB / 367.1 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.00876, allocations: 0 / 367.1 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000442/0.009202, allocations: 440.8 kB / 367.5 MB, free: 3.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.009204, allocations: 0 / 367.5 MB, free: 3.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.009381, allocations: 43.86 kB / 367.6 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.009383, allocations: 0 / 367.6 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.009396, allocations: 4 kB / 367.6 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.009398, allocations: 4 kB / 367.6 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.0094, allocations: 4 kB / 367.6 MB, free: 3.5 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.009674, allocations: 295.8 kB / 367.9 MB, free: 3.195 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.233e-05/0.009687, allocations: 7.953 kB / 367.9 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.009709, allocations: 4 kB / 367.9 MB, free: 3.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.527e-05/0.009785, allocations: 7.938 kB / 367.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.18e-05/0.009816, allocations: 20.02 kB / 367.9 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-06/0.009824, allocations: 0 / 367.9 MB, free: 3.156 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.352e-05/0.009858, allocations: 95.27 kB / 368 MB, free: 3.062 MB / 286.1 MB Notification: Performance of sort global known variables: time 8e-08/0.009858, allocations: 0 / 368 MB, free: 3.062 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002603/0.01012, allocations: 43.94 kB / 368 MB, free: 3.02 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.683e-05/0.0102, allocations: 103.2 kB / 368.1 MB, free: 2.906 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001997/0.01039, allocations: 124.1 kB / 368.3 MB, free: 2.785 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.0104, allocations: 4.062 kB / 368.3 MB, free: 2.781 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.057e-05/0.01047, allocations: 55.92 kB / 368.3 MB, free: 2.727 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.01069, allocations: 14.44 kB / 368.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006548/0.01134, allocations: 474.2 kB / 368.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.28e-05/0.01141, allocations: 108.1 kB / 368.9 MB, free: 2.102 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.854e-05/0.01145, allocations: 17.48 kB / 368.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.873e-05/0.01148, allocations: 16.5 kB / 368.9 MB, free: 2.07 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.01149, allocations: 0 / 368.9 MB, free: 2.07 MB / 286.1 MB Notification: Performance of Templates: time 0.003511/0.015, allocations: 0.999 MB / 369.9 MB, free: 1.086 MB / 286.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.235287453979254] Failed to read output from testmodel.py, exit status != 0: 0.02211766317486763 0.036923074 0.029949585 Calling exit ...