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.001125/0.001125, allocations: 93.06 kB / 19.65 MB, free: 280 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.001292/0.001292, allocations: 169.3 kB / 23.02 MB, free: 1.551 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.9239/0.9239, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.005648/0.005648, allocations: 1.313 MB / 261.3 MB, free: 11.75 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.333e-06/1.333e-06, allocations: 0 / 331.3 MB, free: 18.14 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.559e-05/1.692e-05, allocations: 2.312 kB / 331.3 MB, free: 18.14 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.01087/0.01089, allocations: 5.103 MB / 336.4 MB, free: 13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006346/0.01723, allocations: 2.391 MB / 338.8 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005998/0.01783, allocations: 35.69 kB / 338.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007688/0.0186, allocations: 285.6 kB / 339.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006977/0.0193, allocations: 397.2 kB / 339.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004005/0.0233, allocations: 0.6042 MB / 340.1 MB, free: 9.285 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.02455, allocations: 1.352 MB / 341.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000523/0.02507, allocations: 315.9 kB / 341.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008188/0.02589, allocations: 0.7287 MB / 342.5 MB, free: 6.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004578/0.02635, allocations: 414.7 kB / 342.9 MB, free: 6.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.02648, allocations: 124 kB / 343 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002478/0.02673, allocations: 175.9 kB / 343.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.02695, allocations: 382.7 kB / 343.5 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.02724, allocations: 402.8 kB / 343.9 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009722/0.02821, allocations: 1.035 MB / 345 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.02821, allocations: 0 / 345 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.02821, allocations: 0 / 345 MB, free: 4.355 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.02822, allocations: 4 kB / 345 MB, free: 4.352 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.001558/0.02978, allocations: 1.773 MB / 346.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.02982, allocations: 8.031 kB / 346.7 MB, free: 2.531 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.03008, allocations: 235.8 kB / 347 MB, free: 2.301 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007071/0.03079, allocations: 0.8572 MB / 347.8 MB, free: 1.402 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.03082, allocations: 62.38 kB / 347.9 MB, free: 1.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.407e-05/0.0309, allocations: 92.33 kB / 348 MB, free: 1.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006975/0.0316, allocations: 0.7722 MB / 348.8 MB, free: 408 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.03162, allocations: 7.938 kB / 348.8 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.22e-05/0.03166, allocations: 35.98 kB / 348.8 MB, free: 364 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.03167, allocations: 27.94 kB / 348.8 MB, free: 336 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.03211, allocations: 319.7 kB / 349.1 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.03492, allocations: 3.181 MB / 352.3 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005867/0.03551, allocations: 358.4 kB / 352.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.03569, allocations: 121.1 kB / 352.8 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.03572, allocations: 12.5 kB / 352.8 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.036, allocations: 215.8 kB / 353 MB, free: 12.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 1.963e-06/0.036, allocations: 4 kB / 353 MB, free: 12.01 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.003647/0.03965, allocations: 2.095 MB / 355.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.03971, allocations: 166.9 kB / 355.3 MB, free: 9.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008596/0.04057, allocations: 1.107 MB / 356.4 MB, free: 8.535 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.04061, allocations: 37.7 kB / 356.4 MB, free: 8.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.04097, allocations: 0.6648 MB / 357.1 MB, free: 7.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.04112, allocations: 253.8 kB / 357.3 MB, free: 7.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.04126, allocations: 144.3 kB / 357.5 MB, free: 7.418 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.04137, allocations: 0.5081 MB / 358 MB, free: 6.902 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.04156, allocations: 119.6 kB / 358.1 MB, free: 6.781 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.04188, allocations: 462.1 kB / 358.5 MB, free: 6.203 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/0.04235, allocations: 474.9 kB / 359 MB, free: 5.664 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.04235, allocations: 4 kB / 359 MB, free: 5.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0006736/0.04303, allocations: 0.6095 MB / 359.6 MB, free: 5.043 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.04304, allocations: 11.5 kB / 359.6 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.04305, allocations: 12 kB / 359.6 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.04307, allocations: 8 kB / 359.6 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004205/0.04349, allocations: 183.8 kB / 359.8 MB, free: 4.836 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.0435, allocations: 11.94 kB / 359.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.04371, allocations: 39.97 kB / 359.9 MB, free: 4.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.04374, allocations: 28 kB / 359.9 MB, free: 4.758 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002816/0.04402, allocations: 252.7 kB / 360.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003035/0.04433, allocations: 450.1 kB / 360.6 MB, free: 3.949 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005083/0.04484, allocations: 462.9 kB / 361 MB, free: 3.414 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.885e-06/0.04484, allocations: 4 kB / 361 MB, free: 3.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0006491/0.04549, allocations: 0.6056 MB / 361.7 MB, free: 2.797 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.0455, allocations: 8 kB / 361.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.0455, allocations: 4 kB / 361.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.655e-06/0.04551, allocations: 8 kB / 361.7 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.04588, allocations: 167.8 kB / 361.8 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.0459, allocations: 15.92 kB / 361.9 MB, free: 2.598 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.04615, allocations: 40.36 kB / 361.9 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.04618, allocations: 28 kB / 361.9 MB, free: 2.531 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.000143/0.04632, allocations: 315.8 kB / 362.2 MB, free: 2.215 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.04645, allocations: 147.2 kB / 362.4 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008511/0.0473, allocations: 0.6178 MB / 363 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.0473, allocations: 15.94 kB / 363 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.04731, allocations: 3.938 kB / 363 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.04731, allocations: 3.984 kB / 363 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.04906, allocations: 1.595 MB / 364.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.04907, allocations: 4 kB / 364.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002763/0.04934, allocations: 107.8 kB / 364.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004115/0.04975, allocations: 131.6 kB / 364.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/0.04979, allocations: 27.92 kB / 364.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001782/0.05157, allocations: 2.583 MB / 367.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.05158, allocations: 7.938 kB / 367.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.05296, allocations: 0.9384 MB / 368.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003267/0.05329, allocations: 195.1 kB / 368.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.05341, allocations: 19.94 kB / 368.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.05375, allocations: 35.97 kB / 368.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.05387, allocations: 52.56 kB / 368.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.05391, allocations: 19.98 kB / 368.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008485/0.05476, allocations: 0.6809 MB / 369.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.05476, allocations: 4 kB / 369.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009812/0.05574, allocations: 320 kB / 369.7 MB, free: 10.49 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.001125/0.05687, allocations: 418.8 kB / 370.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007933/0.05766, allocations: 0.6233 MB / 370.7 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.05767, allocations: 0 / 370.7 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004416/0.05811, allocations: 442.2 kB / 371.2 MB, free: 9.145 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005963/0.0587, allocations: 229.7 kB / 371.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.06109, allocations: 2.134 MB / 373.5 MB, free: 6.734 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.06125, allocations: 240.7 kB / 373.8 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.06154, allocations: 159 kB / 373.9 MB, free: 6.312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.06167, allocations: 68.5 kB / 374 MB, free: 6.246 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.06167, allocations: 0 / 374 MB, free: 6.246 MB / 298.7 MB Notification: Performance of Templates: time 0.0158/0.07748, allocations: 13.55 MB / 387.5 MB, free: 8.816 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.07831519190222]