Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.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.000956/0.000956, allocations: 92.22 kB / 19.65 MB, free: 276 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.000942/0.000942, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9939/0.9939, allocations: 177.1 MB / 203.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo): time 0.005478/0.005478, allocations: 1.321 MB / 261.3 MB, free: 11.73 MB / 250.7 MB " [Timeout remaining time 180] Using package BikeTrailer with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(BikeTrailer.Examples.TestTrailerControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerControlled") translateModel(BikeTrailer.Examples.TestTrailerControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 331.3 MB, free: 18.12 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.736e-05/1.876e-05, allocations: 4.562 kB / 331.3 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.004321/0.00434, allocations: 5.092 MB / 336.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003174/0.007514, allocations: 2.399 MB / 338.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005055/0.00802, allocations: 31.75 kB / 338.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007008/0.00872, allocations: 289.5 kB / 339.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006458/0.009366, allocations: 393.2 kB / 339.5 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007615/0.01013, allocations: 0.6003 MB / 340.1 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008566/0.01098, allocations: 1.352 MB / 341.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.01135, allocations: 319.9 kB / 341.7 MB, free: 7.578 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006083/0.01196, allocations: 0.7248 MB / 342.5 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003566/0.01231, allocations: 414.7 kB / 342.9 MB, free: 6.445 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.562e-05/0.01241, allocations: 124 kB / 343 MB, free: 6.324 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.01258, allocations: 171.9 kB / 343.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.01275, allocations: 390.6 kB / 343.5 MB, free: 5.773 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.01298, allocations: 398.8 kB / 343.9 MB, free: 5.383 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007931/0.01377, allocations: 1.039 MB / 345 MB, free: 4.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.01377, allocations: 0 / 345 MB, free: 4.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.01377, allocations: 4 kB / 345 MB, free: 4.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.01379, allocations: 0 / 345 MB, free: 4.336 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001903/0.01569, allocations: 1.753 MB / 346.7 MB, free: 2.543 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.01573, allocations: 8.031 kB / 346.7 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.01604, allocations: 235.8 kB / 347 MB, free: 2.305 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008228/0.01686, allocations: 0.8572 MB / 347.8 MB, free: 1.406 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.0169, allocations: 62.38 kB / 347.9 MB, free: 1.344 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-05/0.01698, allocations: 92.31 kB / 348 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/0.01768, allocations: 0.7761 MB / 348.7 MB, free: 408 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.0177, allocations: 7.875 kB / 348.7 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.01774, allocations: 32 kB / 348.8 MB, free: 368 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.01775, allocations: 20 kB / 348.8 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004351/0.01819, allocations: 321.7 kB / 349.1 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.02091, allocations: 3.184 MB / 352.3 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.02147, allocations: 346.4 kB / 352.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.02165, allocations: 125.1 kB / 352.8 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.02168, allocations: 16.48 kB / 352.8 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.02198, allocations: 215.9 kB / 353 MB, free: 12.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 4.368e-06/0.02198, allocations: 3.984 kB / 353 MB, free: 12.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.003626/0.02561, allocations: 2.075 MB / 355.1 MB, free: 9.883 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.0257, allocations: 166.9 kB / 355.2 MB, free: 9.684 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000996/0.02669, allocations: 1.099 MB / 356.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.02673, allocations: 41.7 kB / 356.4 MB, free: 8.523 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.02711, allocations: 0.6648 MB / 357 MB, free: 7.852 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.02725, allocations: 257.8 kB / 357.3 MB, free: 7.598 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.0274, allocations: 144.3 kB / 357.4 MB, free: 7.445 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.02753, allocations: 0.5003 MB / 357.9 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.02773, allocations: 123.6 kB / 358 MB, free: 6.812 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/0.02809, allocations: 462.1 kB / 358.5 MB, free: 6.234 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005106/0.0286, allocations: 478.9 kB / 359 MB, free: 5.691 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.0286, allocations: 0 / 359 MB, free: 5.691 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008198/0.02942, allocations: 0.606 MB / 359.6 MB, free: 5.078 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.02945, allocations: 10.03 kB / 359.6 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.02946, allocations: 11.97 kB / 359.6 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.02948, allocations: 8 kB / 359.6 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004365/0.02992, allocations: 179.7 kB / 359.8 MB, free: 4.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.02993, allocations: 8 kB / 359.8 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.03018, allocations: 35.98 kB / 359.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.03021, allocations: 31.98 kB / 359.8 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003078/0.03052, allocations: 248.7 kB / 360.1 MB, free: 4.555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000401/0.03092, allocations: 454.1 kB / 360.5 MB, free: 3.992 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004687/0.03139, allocations: 466.9 kB / 361 MB, free: 3.453 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.555e-06/0.03139, allocations: 0 / 361 MB, free: 3.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.000711/0.03211, allocations: 0.6095 MB / 361.6 MB, free: 2.836 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.03212, allocations: 8 kB / 361.6 MB, free: 2.828 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.03213, allocations: 4 kB / 361.6 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.848e-06/0.03214, allocations: 8 kB / 361.6 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.03253, allocations: 167.8 kB / 361.8 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.03254, allocations: 11.94 kB / 361.8 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.03277, allocations: 40.42 kB / 361.8 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/0.03281, allocations: 24 kB / 361.9 MB, free: 2.578 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.track.nextTimeEvent,$whenCondition1,track.nextTimeEventScaled,$PRE.track.nextTimeEventScaled,track.nextTimeEvent,PID.I.local_reset,trailer.energyDrive.local_reset,trailer.energyBike.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 94 * 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 0.0002219/0.03303, allocations: 319.8 kB / 362.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.03317, allocations: 143.2 kB / 362.3 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009485/0.03411, allocations: 0.6217 MB / 362.9 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.03412, allocations: 11.94 kB / 362.9 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.03413, allocations: 0 / 362.9 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.03413, allocations: 3.984 kB / 362.9 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.03607, allocations: 1.595 MB / 364.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.03607, allocations: 4 kB / 364.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.03634, allocations: 103.9 kB / 364.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004448/0.03678, allocations: 139.5 kB / 364.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.03683, allocations: 19.98 kB / 364.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.03868, allocations: 2.594 MB / 367.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.03869, allocations: 0 / 367.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.03987, allocations: 0.9384 MB / 368.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.04014, allocations: 191.1 kB / 368.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.437e-05/0.04021, allocations: 23.94 kB / 368.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.04042, allocations: 23.98 kB / 368.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-05/0.04051, allocations: 56.55 kB / 368.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/0.04054, allocations: 23.98 kB / 368.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005997/0.04114, allocations: 0.681 MB / 369.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04114, allocations: 0 / 369.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007011/0.04184, allocations: 320 kB / 369.6 MB, free: 10.56 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (trailer.energyBike.y,trailer.vehicle.windSpeed.s,trailer.vehicle.windSpeed.v,trailer.energyDrive.y,PID.I.y,PID.D.x,bike.s,bike.v,genericDrive.drive.x_scaled[1],genericDrive.drive.x_scaled[2]) * Number of discrete variables: 3 ($whenCondition1,track.nextTimeEvent,track.nextTimeEventScaled) * Number of discrete states: 2 (track.nextTimeEvent,track.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008622/0.0427, allocations: 410.4 kB / 370 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008589/0.04356, allocations: 0.6232 MB / 370.7 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.04357, allocations: 0 / 370.7 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004871/0.04405, allocations: 438.2 kB / 371.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.04467, allocations: 240.1 kB / 371.3 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.04738, allocations: 2.142 MB / 373.5 MB, free: 6.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.04761, allocations: 240.7 kB / 373.7 MB, free: 6.531 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003287/0.04794, allocations: 131.1 kB / 373.8 MB, free: 6.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.04807, allocations: 68.5 kB / 373.9 MB, free: 6.332 MB / 298.7 MB Notification: Performance of SimCode: time 1.083e-06/0.04807, allocations: 0 / 373.9 MB, free: 6.332 MB / 298.7 MB Notification: Performance of Templates: time 0.01816/0.06623, allocations: 13.56 MB / 387.5 MB, free: 8.898 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.makefile [Timeout 660] (rm -f BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.sim & ./BikeTrailer_BikeTrailer.Examples.TestTrailerControlled -abortSlowSimulation -alarm=240 -lv LOG_STATS > BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.047249766997993]