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.001529/0.001529, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001847/0.001847, allocations: 177 kB / 23.36 MB, free: 1.129 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.9824/0.9824, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.009755/0.009755, allocations: 1.333 MB / 261.6 MB, free: 11.62 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 2.084e-06/2.084e-06, allocations: 0 / 278.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.223e-05, allocations: 2.312 kB / 278.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.005225/0.005247, allocations: 5.021 MB / 283.5 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.008212, allocations: 2.461 MB / 285.9 MB, free: 3.227 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003509/0.008563, allocations: 35.75 kB / 286 MB, free: 3.191 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007069/0.00927, allocations: 297.6 kB / 286.3 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005844/0.009855, allocations: 385.2 kB / 286.6 MB, free: 2.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008128/0.01067, allocations: 0.5965 MB / 287.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.01168, allocations: 1.356 MB / 288.6 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004275/0.01211, allocations: 331.8 kB / 288.9 MB, free: 212 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.123/0.1351, allocations: 0.7144 MB / 289.6 MB, free: 20.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006257/0.1357, allocations: 408.3 kB / 290 MB, free: 20.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000203/0.1359, allocations: 129 kB / 290.2 MB, free: 20.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.1362, allocations: 177.5 kB / 290.3 MB, free: 20.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002908/0.1365, allocations: 386.8 kB / 290.7 MB, free: 20.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004493/0.137, allocations: 406.4 kB / 291.1 MB, free: 20.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1383, allocations: 1.041 MB / 292.1 MB, free: 19.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1383, allocations: 1.188 kB / 292.1 MB, free: 19.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1383, allocations: 1.359 kB / 292.1 MB, free: 19.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.1384, allocations: 0 / 292.1 MB, free: 19.9 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.002191/0.1406, allocations: 1.582 MB / 293.7 MB, free: 19.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.1406, allocations: 9.188 kB / 293.7 MB, free: 19.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003536/0.1409, allocations: 167.2 kB / 293.9 MB, free: 19.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000939/0.1419, allocations: 0.6764 MB / 294.6 MB, free: 18.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.927e-05/0.1419, allocations: 61.19 kB / 294.6 MB, free: 18.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.1421, allocations: 89.91 kB / 294.7 MB, free: 18.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008061/0.1429, allocations: 0.7149 MB / 295.4 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.1429, allocations: 2.984 kB / 295.4 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.863e-05/0.143, allocations: 39.14 kB / 295.5 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.143, allocations: 22.53 kB / 295.5 MB, free: 18.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.1434, allocations: 234.7 kB / 295.7 MB, free: 18.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.1458, allocations: 2.164 MB / 297.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004712/0.1463, allocations: 346.9 kB / 298.2 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.1464, allocations: 91.75 kB / 298.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.59e-05/0.1464, allocations: 15.22 kB / 298.3 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.1467, allocations: 196 kB / 298.5 MB, free: 17.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 1.984e-06/0.1467, allocations: 0 / 298.5 MB, free: 17.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=68): time 0.002882/0.1495, allocations: 1.673 MB / 300.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1496, allocations: 163.1 kB / 300.4 MB, free: 16.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007141/0.1503, allocations: 0.9544 MB / 301.3 MB, free: 16.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.1503, allocations: 37.11 kB / 301.4 MB, free: 16.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.1505, allocations: 419.1 kB / 301.8 MB, free: 16.26 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.1506, allocations: 257.1 kB / 302 MB, free: 16.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.1507, allocations: 137.5 kB / 302.1 MB, free: 16.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.404e-05/0.1508, allocations: 336.3 kB / 302.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.1509, allocations: 85.72 kB / 302.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.1511, allocations: 356 kB / 302.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.1514, allocations: 375.2 kB / 303.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1514, allocations: 5.062 kB / 303.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0004633/0.1519, allocations: 418 kB / 303.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1519, allocations: 9.062 kB / 303.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.1519, allocations: 5.969 kB / 303.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.1519, allocations: 8.875 kB / 303.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003669/0.1523, allocations: 181.6 kB / 303.9 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1523, allocations: 11 kB / 303.9 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.1525, allocations: 34.09 kB / 303.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.1525, allocations: 19.75 kB / 304 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001893/0.1527, allocations: 177.8 kB / 304.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001518/0.1529, allocations: 361.4 kB / 304.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002623/0.1531, allocations: 368.4 kB / 304.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.1531, allocations: 0 / 304.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0003631/0.1535, allocations: 415.6 kB / 305.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.1535, allocations: 8.562 kB / 305.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.1535, allocations: 2.906 kB / 305.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.17e-06/0.1535, allocations: 8.75 kB / 305.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.1538, allocations: 174.5 kB / 305.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1538, allocations: 7.656 kB / 305.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.154, allocations: 38.42 kB / 305.5 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.1541, allocations: 18.75 kB / 305.5 MB, free: 14.48 MB / 266.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 9.95e-05/0.1542, allocations: 237.1 kB / 305.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.1542, allocations: 93.52 kB / 305.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005919/0.1548, allocations: 491.5 kB / 306.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1548, allocations: 6.219 kB / 306.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.1548, allocations: 2.969 kB / 306.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.1548, allocations: 6.141 kB / 306.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.156, allocations: 1.084 MB / 307.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.156, allocations: 0 / 307.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.1563, allocations: 101.5 kB / 307.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000316/0.1566, allocations: 121.2 kB / 307.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.1566, allocations: 21.98 kB / 307.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.1577, allocations: 1.851 MB / 309.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1577, allocations: 2.344 kB / 309.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006262/0.1583, allocations: 0.7145 MB / 310.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.1585, allocations: 133.8 kB / 310.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.1585, allocations: 19.98 kB / 310.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.1587, allocations: 31.92 kB / 310.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.1588, allocations: 56.55 kB / 310.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.1588, allocations: 12 kB / 310.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002731/0.1591, allocations: 474.1 kB / 310.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1591, allocations: 0 / 310.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005206/0.1596, allocations: 331.9 kB / 311.2 MB, free: 9.941 MB / 266.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.001009/0.1606, allocations: 0.5264 MB / 311.8 MB, free: 9.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004554/0.1611, allocations: 0.5134 MB / 312.3 MB, free: 9.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.1611, allocations: 13.75 kB / 312.3 MB, free: 9.254 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.1613, allocations: 350.4 kB / 312.6 MB, free: 8.918 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005231/0.1619, allocations: 228.7 kB / 312.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.1639, allocations: 2.074 MB / 314.9 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.164, allocations: 240.7 kB / 315.2 MB, free: 6.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.1643, allocations: 135.1 kB / 315.3 MB, free: 6.215 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.1646, allocations: 233.2 kB / 315.5 MB, free: 5.984 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1646, allocations: 0 / 315.5 MB, free: 5.984 MB / 266.7 MB Notification: Performance of Templates: time 0.01728/0.1818, allocations: 13.89 MB / 329.4 MB, free: 8.352 MB / 282.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: 4.086112504824996]