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.001057/0.001057, allocations: 73.88 kB / 20.65 MB, free: 3.844 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.001211/0.001211, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9584/0.9584, allocations: 177.2 MB / 204.5 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.008721/0.008721, allocations: 1.313 MB / 262.4 MB, free: 11.59 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.212e-06/1.212e-06, allocations: 0 / 332.5 MB, free: 17.85 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.195e-05/1.317e-05, allocations: 4.984 kB / 332.5 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.004563/0.004577, allocations: 5.01 MB / 337.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002947/0.007524, allocations: 2.38 MB / 339.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004507/0.007975, allocations: 35.75 kB / 339.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005845/0.008559, allocations: 285.5 kB / 340.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005821/0.009141, allocations: 397.2 kB / 340.6 MB, free: 9.707 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008261/0.009967, allocations: 0.5964 MB / 341.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007912/0.01076, allocations: 1.356 MB / 342.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003348/0.01109, allocations: 315.9 kB / 342.9 MB, free: 7.414 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006374/0.01173, allocations: 0.7248 MB / 343.6 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003426/0.01207, allocations: 410.7 kB / 344 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.853e-05/0.01217, allocations: 124 kB / 344.1 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.01233, allocations: 179.9 kB / 344.3 MB, free: 5.988 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.01249, allocations: 390.6 kB / 344.7 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.0127, allocations: 402.8 kB / 345.1 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006352/0.01334, allocations: 1.031 MB / 346.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.01334, allocations: 0 / 346.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.01334, allocations: 3.984 kB / 346.1 MB, free: 4.172 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.01335, allocations: 4 kB / 346.1 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.001405/0.01476, allocations: 1.757 MB / 347.8 MB, free: 2.371 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.785e-05/0.01478, allocations: 8.031 kB / 347.9 MB, free: 2.363 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.01502, allocations: 239.8 kB / 348.1 MB, free: 2.129 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006536/0.01567, allocations: 0.826 MB / 348.9 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.01571, allocations: 70.38 kB / 349 MB, free: 1.191 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.245e-05/0.01578, allocations: 88.33 kB / 349.1 MB, free: 1.105 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.01631, allocations: 0.7252 MB / 349.8 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.01633, allocations: 15.91 kB / 349.8 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.01637, allocations: 32 kB / 349.8 MB, free: 260 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01638, allocations: 16 kB / 349.9 MB, free: 244 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.01668, allocations: 261.7 kB / 350.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002445/0.01913, allocations: 2.984 MB / 353.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004491/0.01957, allocations: 318.3 kB / 353.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.0197, allocations: 101.1 kB / 353.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.01973, allocations: 16.48 kB / 353.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.01995, allocations: 199.8 kB / 353.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 1.753e-06/0.01996, allocations: 0 / 353.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.002836/0.02279, allocations: 1.761 MB / 355.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.02285, allocations: 174.8 kB / 355.6 MB, free: 10.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000736/0.02359, allocations: 1.059 MB / 356.7 MB, free: 9.152 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.02363, allocations: 37.7 kB / 356.7 MB, free: 9.109 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000359/0.02399, allocations: 0.6841 MB / 357.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.02412, allocations: 253.8 kB / 357.7 MB, free: 8.168 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.02427, allocations: 148.2 kB / 357.8 MB, free: 8.012 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.02439, allocations: 0.5081 MB / 358.3 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.02452, allocations: 91.61 kB / 358.4 MB, free: 7.402 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.0248, allocations: 442.1 kB / 358.9 MB, free: 6.844 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003695/0.02517, allocations: 430.8 kB / 359.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.02517, allocations: 0 / 359.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000581/0.02575, allocations: 0.5631 MB / 359.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.02577, allocations: 8.031 kB / 359.8 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.02578, allocations: 8 kB / 359.9 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.02579, allocations: 8 kB / 359.9 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.0262, allocations: 179.7 kB / 360 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.0262, allocations: 15.88 kB / 360 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.02642, allocations: 31.98 kB / 360.1 MB, free: 5.531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.02645, allocations: 24 kB / 360.1 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000229/0.02668, allocations: 220.8 kB / 360.3 MB, free: 5.289 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002489/0.02693, allocations: 438.1 kB / 360.7 MB, free: 4.742 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00034/0.02727, allocations: 418.8 kB / 361.2 MB, free: 4.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.298e-06/0.02728, allocations: 7.938 kB / 361.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0005281/0.0278, allocations: 0.547 MB / 361.7 MB, free: 3.688 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.02781, allocations: 8 kB / 361.7 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.02782, allocations: 4 kB / 361.7 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.031e-06/0.02782, allocations: 8 kB / 361.7 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.02816, allocations: 171.7 kB / 361.9 MB, free: 3.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.02817, allocations: 15.92 kB / 361.9 MB, free: 3.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.02837, allocations: 36.47 kB / 362 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.02839, allocations: 19.98 kB / 362 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.0001474/0.02854, allocations: 318.5 kB / 362.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.02865, allocations: 143.2 kB / 362.4 MB, free: 2.973 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007123/0.02936, allocations: 0.5826 MB / 363 MB, free: 2.379 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.02937, allocations: 8 kB / 363 MB, free: 2.371 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.02937, allocations: 3.938 kB / 363 MB, free: 2.367 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.02938, allocations: 3.984 kB / 363 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.0308, allocations: 1.359 MB / 364.4 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.0308, allocations: 0 / 364.4 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.03105, allocations: 112 kB / 364.5 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004219/0.03148, allocations: 135.7 kB / 364.6 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.03153, allocations: 20 kB / 364.6 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.03379, allocations: 2.524 MB / 367.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.03379, allocations: 0 / 367.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.03517, allocations: 0.8719 MB / 368 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002936/0.03546, allocations: 175.1 kB / 368.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.03558, allocations: 20 kB / 368.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.03593, allocations: 35.91 kB / 368.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.03603, allocations: 52.5 kB / 368.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.03607, allocations: 27.98 kB / 368.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006542/0.03673, allocations: 0.6183 MB / 369 MB, free: 12.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.03673, allocations: 0 / 369 MB, free: 12.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009538/0.03768, allocations: 320 kB / 369.3 MB, free: 11.91 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.001041/0.03872, allocations: 418.4 kB / 369.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008731/0.03959, allocations: 0.5645 MB / 370.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.0396, allocations: 0 / 370.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005283/0.04012, allocations: 414.2 kB / 370.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006472/0.04077, allocations: 224.1 kB / 370.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.04308, allocations: 2.127 MB / 373 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.04324, allocations: 244.7 kB / 373.2 MB, free: 7.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002812/0.04352, allocations: 131.1 kB / 373.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/0.04387, allocations: 274.1 kB / 373.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of SimCode: time 7.92e-07/0.04387, allocations: 0 / 373.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of Templates: time 0.01635/0.06022, allocations: 14.22 MB / 387.8 MB, free: 9.488 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: 4.889486877713352]