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.001876/0.001876, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.002145/0.002145, allocations: 165.9 kB / 22.45 MB, free: 2.105 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 1.686/1.686, allocations: 177.1 MB / 202.7 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 178] 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.01047/0.01047, allocations: 1.316 MB / 260.5 MB, free: 11.95 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.893e-06/1.893e-06, allocations: 0 / 383.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.725e-05/3.914e-05, allocations: 2.281 kB / 383.7 MB, free: 12.94 MB / 314.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.008127/0.008166, allocations: 4.767 MB / 388.5 MB, free: 8.145 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005656/0.01382, allocations: 2.352 MB / 390.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000919/0.01474, allocations: 35.75 kB / 390.9 MB, free: 5.746 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.01587, allocations: 293.5 kB / 391.1 MB, free: 5.457 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001189/0.01705, allocations: 381.3 kB / 391.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.01859, allocations: 0.6034 MB / 392.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002029/0.02062, allocations: 1.356 MB / 393.5 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006673/0.02128, allocations: 315.9 kB / 393.8 MB, free: 2.789 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.02263, allocations: 0.7209 MB / 394.5 MB, free: 2.066 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007334/0.02337, allocations: 406.7 kB / 394.9 MB, free: 1.668 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002623/0.02363, allocations: 124 kB / 395 MB, free: 1.547 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003992/0.02403, allocations: 175.9 kB / 395.2 MB, free: 1.375 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004412/0.02447, allocations: 386.7 kB / 395.6 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005526/0.02502, allocations: 402.8 kB / 396 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002668/0.02769, allocations: 1.632 MB / 397.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.02769, allocations: 0 / 397.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.02769, allocations: 0 / 397.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.552e-05/0.02773, allocations: 0 / 397.6 MB, free: 14.96 MB / 330.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.003557/0.03129, allocations: 1.679 MB / 399.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.03133, allocations: 12.03 kB / 399.3 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003746/0.03171, allocations: 167.8 kB / 399.4 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.03347, allocations: 0.9065 MB / 400.4 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.526e-05/0.03355, allocations: 66.31 kB / 400.4 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.03369, allocations: 84.38 kB / 400.5 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/0.03561, allocations: 0.9812 MB / 401.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/0.03566, allocations: 11.89 kB / 401.5 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-05/0.03574, allocations: 32 kB / 401.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.969e-05/0.03577, allocations: 24 kB / 401.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.03732, allocations: 0.6518 MB / 402.2 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006094/0.04341, allocations: 2.974 MB / 405.2 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.04493, allocations: 0.5621 MB / 405.7 MB, free: 6.594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006111/0.04554, allocations: 262.2 kB / 406 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.306e-05/0.0456, allocations: 8.5 kB / 406 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008265/0.04643, allocations: 358.1 kB / 406.4 MB, free: 5.961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.176e-06/0.04643, allocations: 0 / 406.4 MB, free: 5.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=68): time 0.008395/0.05483, allocations: 2.985 MB / 409.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.05497, allocations: 158.9 kB / 409.5 MB, free: 2.734 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/0.05729, allocations: 1.368 MB / 410.9 MB, free: 1.352 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/0.05737, allocations: 41.7 kB / 410.9 MB, free: 1.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006764/0.05805, allocations: 0.5796 MB / 411.5 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005273/0.05858, allocations: 253.8 kB / 411.7 MB, free: 480 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.05884, allocations: 134.6 kB / 411.9 MB, free: 336 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.1558/0.2146, allocations: 345.6 kB / 412.2 MB, free: 38.69 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008302/0.2155, allocations: 276.3 kB / 412.5 MB, free: 38.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/0.2162, allocations: 0.5356 MB / 413 MB, free: 38.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.2173, allocations: 0.703 MB / 413.7 MB, free: 38.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.2173, allocations: 4.438 kB / 413.7 MB, free: 38.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001771/0.2191, allocations: 0.8733 MB / 414.6 MB, free: 37.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.2191, allocations: 7.953 kB / 414.6 MB, free: 37.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.2191, allocations: 4.125 kB / 414.6 MB, free: 37.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/0.2192, allocations: 6.875 kB / 414.6 MB, free: 37.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007798/0.22, allocations: 192.4 kB / 414.8 MB, free: 37.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.22, allocations: 10.48 kB / 414.8 MB, free: 37.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006772/0.2206, allocations: 53.36 kB / 414.9 MB, free: 37.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/0.2207, allocations: 25.75 kB / 414.9 MB, free: 37.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008848/0.2216, allocations: 0.5153 MB / 415.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005138/0.2221, allocations: 0.5012 MB / 415.9 MB, free: 37.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008581/0.223, allocations: 0.6435 MB / 416.5 MB, free: 36.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.918e-06/0.223, allocations: 1.062 kB / 416.5 MB, free: 36.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001263/0.2242, allocations: 0.801 MB / 417.3 MB, free: 36.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.2242, allocations: 7.812 kB / 417.3 MB, free: 36.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.2243, allocations: 12.8 kB / 417.4 MB, free: 36.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.2243, allocations: 12 kB / 417.4 MB, free: 36.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007063/0.225, allocations: 170.9 kB / 417.5 MB, free: 36.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.225, allocations: 11.39 kB / 417.5 MB, free: 36.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005389/0.2255, allocations: 41.78 kB / 417.6 MB, free: 36.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.2256, allocations: 30.33 kB / 417.6 MB, free: 36.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (92): * Single equations (assignments): 92 * 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.0002245/0.2258, allocations: 221.7 kB / 417.8 MB, free: 36.24 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.226, allocations: 131.4 kB / 418 MB, free: 36.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.2282, allocations: 0.9815 MB / 418.9 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.2282, allocations: 6.469 kB / 419 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2283, allocations: 1.75 kB / 419 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.2283, allocations: 4.125 kB / 419 MB, free: 35.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.2319, allocations: 1.892 MB / 420.8 MB, free: 35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.2319, allocations: 6.453 kB / 420.9 MB, free: 35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005387/0.2325, allocations: 112.2 kB / 421 MB, free: 35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006449/0.2331, allocations: 197.3 kB / 421.2 MB, free: 34.94 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-05/0.2332, allocations: 16.27 kB / 421.2 MB, free: 34.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003899/0.2371, allocations: 2.648 MB / 423.8 MB, free: 33.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.2371, allocations: 1.281 kB / 423.8 MB, free: 33.06 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002891/0.24, allocations: 1.417 MB / 425.2 MB, free: 32.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005209/0.2405, allocations: 196.2 kB / 425.4 MB, free: 32.29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.2406, allocations: 15.94 kB / 425.4 MB, free: 32.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005049/0.2411, allocations: 48.86 kB / 425.5 MB, free: 32.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.2413, allocations: 57.44 kB / 425.5 MB, free: 32.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.2413, allocations: 24.5 kB / 425.6 MB, free: 32.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001521/0.2429, allocations: 0.9722 MB / 426.5 MB, free: 31.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2429, allocations: 0 / 426.5 MB, free: 31.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001181/0.244, allocations: 320.6 kB / 426.9 MB, free: 31.86 MB / 330.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.002818/0.2469, allocations: 463.1 kB / 427.3 MB, free: 31.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.2491, allocations: 0.9645 MB / 428.3 MB, free: 31.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.2491, allocations: 0.8281 kB / 428.3 MB, free: 31.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.2503, allocations: 0.489 MB / 428.8 MB, free: 31.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.252, allocations: 224 kB / 429 MB, free: 31.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004434/0.2564, allocations: 2.414 MB / 431.4 MB, free: 29.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006918/0.2571, allocations: 0.5521 MB / 432 MB, free: 29.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006982/0.2578, allocations: 187.5 kB / 432.1 MB, free: 29.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.258, allocations: 71.97 kB / 432.2 MB, free: 29.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.754e-06/0.258, allocations: 0 / 432.2 MB, free: 29.54 MB / 330.7 MB Notification: Performance of Templates: time 0.01976/0.2777, allocations: 12.73 MB / 444.9 MB, free: 17.36 MB / 330.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: 8.50765503803268]