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.001245/0.001245, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.001428/0.001428, allocations: 169.7 kB / 23.27 MB, free: 1.223 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.9447/0.9447, allocations: 177.1 MB / 203.7 MB, free: 5.488 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.005515/0.005515, allocations: 1.317 MB / 261.6 MB, free: 11.57 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.293e-06/1.293e-06, allocations: 0 / 331.7 MB, free: 17.85 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.392e-05/1.521e-05, allocations: 4.141 kB / 331.7 MB, free: 17.84 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.01065/0.01067, allocations: 5.014 MB / 336.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.01328, allocations: 2.371 MB / 339.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003463/0.01363, allocations: 35.75 kB / 339.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004285/0.01791, allocations: 297.5 kB / 339.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004604/0.01837, allocations: 393.2 kB / 339.8 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.01891, allocations: 0.6004 MB / 340.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000595/0.0195, allocations: 1.356 MB / 341.8 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.01977, allocations: 315.9 kB / 342.1 MB, free: 7.406 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004164/0.02019, allocations: 0.7209 MB / 342.8 MB, free: 6.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.02047, allocations: 414.7 kB / 343.2 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.552e-05/0.02055, allocations: 124 kB / 343.3 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.0207, allocations: 175.9 kB / 343.5 MB, free: 5.984 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.02086, allocations: 378.7 kB / 343.9 MB, free: 5.613 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.02105, allocations: 410.8 kB / 344.3 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006188/0.02167, allocations: 1.039 MB / 345.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.02167, allocations: 0 / 345.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.02167, allocations: 0 / 345.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.02168, allocations: 0 / 345.3 MB, free: 4.168 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.001284/0.02296, allocations: 1.765 MB / 347.1 MB, free: 2.363 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.02299, allocations: 12.03 kB / 347.1 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.02321, allocations: 227.8 kB / 347.3 MB, free: 2.129 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006018/0.02381, allocations: 0.826 MB / 348.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.02384, allocations: 62.38 kB / 348.2 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.613e-05/0.02391, allocations: 88.31 kB / 348.3 MB, free: 1.113 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.02442, allocations: 0.7408 MB / 349 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.02444, allocations: 3.938 kB / 349 MB, free: 296 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.02448, allocations: 36 kB / 349.1 MB, free: 260 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.02449, allocations: 20 kB / 349.1 MB, free: 240 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.02479, allocations: 265.6 kB / 349.3 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.02712, allocations: 2.976 MB / 352.3 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004058/0.02752, allocations: 326.3 kB / 352.6 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.02765, allocations: 105.1 kB / 352.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.02767, allocations: 12.5 kB / 352.7 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.02788, allocations: 191.8 kB / 352.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 1.513e-06/0.02789, allocations: 0 / 352.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.002597/0.03048, allocations: 1.776 MB / 354.7 MB, free: 10.42 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.03054, allocations: 162.9 kB / 354.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006969/0.03123, allocations: 1.055 MB / 355.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.03127, allocations: 41.7 kB / 356 MB, free: 9.105 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003364/0.03161, allocations: 0.6841 MB / 356.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.03174, allocations: 257.8 kB / 356.9 MB, free: 8.16 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.03187, allocations: 144.2 kB / 357 MB, free: 8.008 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.03199, allocations: 0.5158 MB / 357.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.0321, allocations: 95.61 kB / 357.6 MB, free: 7.387 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.03237, allocations: 434.1 kB / 358.1 MB, free: 6.836 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.03272, allocations: 430.8 kB / 358.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.03273, allocations: 0 / 358.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0005231/0.03325, allocations: 0.5664 MB / 359.1 MB, free: 5.766 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.03326, allocations: 8 kB / 359.1 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.03327, allocations: 4 kB / 359.1 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.03328, allocations: 8.531 kB / 359.1 MB, free: 5.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.03365, allocations: 183.7 kB / 359.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.03365, allocations: 8 kB / 359.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.03384, allocations: 31.98 kB / 359.3 MB, free: 5.527 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.03387, allocations: 27.98 kB / 359.3 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002071/0.03408, allocations: 220.8 kB / 359.5 MB, free: 5.281 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002306/0.03431, allocations: 434.1 kB / 360 MB, free: 4.738 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003225/0.03463, allocations: 418.8 kB / 360.4 MB, free: 4.246 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.887e-06/0.03464, allocations: 3.938 kB / 360.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0004839/0.03512, allocations: 0.5513 MB / 360.9 MB, free: 3.684 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-06/0.03513, allocations: 4 kB / 360.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.03513, allocations: 8 kB / 360.9 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.111e-06/0.03514, allocations: 8 kB / 360.9 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.03546, allocations: 175.7 kB / 361.1 MB, free: 3.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.03547, allocations: 8 kB / 361.1 MB, free: 3.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.03565, allocations: 32.11 kB / 361.2 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.03568, allocations: 24.09 kB / 361.2 MB, free: 3.43 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,trailer.energyBike.local_reset,trailer.energyDrive.local_reset,PID.I.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.0001348/0.03581, allocations: 329.9 kB / 361.5 MB, free: 3.102 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.03592, allocations: 139.2 kB / 361.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006853/0.0366, allocations: 0.5826 MB / 362.2 MB, free: 2.371 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.03661, allocations: 8 kB / 362.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.03662, allocations: 3.938 kB / 362.2 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.03662, allocations: 7.984 kB / 362.2 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.03802, allocations: 1.366 MB / 363.6 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.03802, allocations: 0 / 363.6 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002381/0.03826, allocations: 108 kB / 363.7 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003284/0.03859, allocations: 134.9 kB / 363.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/0.03862, allocations: 23.98 kB / 363.9 MB, free: 0.668 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.04011, allocations: 2.517 MB / 366.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.04011, allocations: 0 / 366.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008508/0.04096, allocations: 0.8719 MB / 367.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.04116, allocations: 187.1 kB / 367.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.235e-05/0.04122, allocations: 16 kB / 367.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.04141, allocations: 31.92 kB / 367.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.04148, allocations: 64.42 kB / 367.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.0415, allocations: 16 kB / 367.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003961/0.0419, allocations: 0.6183 MB / 368.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0419, allocations: 0 / 368.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005569/0.04245, allocations: 324 kB / 368.5 MB, free: 11.89 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.0007567/0.04321, allocations: 410.5 kB / 368.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00056/0.04377, allocations: 0.5604 MB / 369.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.04377, allocations: 0 / 369.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004165/0.04419, allocations: 422.9 kB / 369.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005508/0.04474, allocations: 224.2 kB / 370.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.04693, allocations: 2.123 MB / 372.2 MB, free: 8.238 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.04709, allocations: 244.7 kB / 372.5 MB, free: 7.973 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.04735, allocations: 127.1 kB / 372.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003478/0.04769, allocations: 274.1 kB / 372.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.04769, allocations: 0 / 372.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of Templates: time 0.01571/0.0634, allocations: 13.91 MB / 386.8 MB, free: 9.859 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.440981230698526]