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.0009511/0.0009511, allocations: 88.42 kB / 19.93 MB, free: 4.602 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.0009412/0.0009412, allocations: 173.9 kB / 23.21 MB, free: 1.32 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.9898/0.9898, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.005853/0.005853, allocations: 1.318 MB / 261.3 MB, free: 11.94 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.663e-06/1.663e-06, allocations: 0 / 383.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.83e-05/2.997e-05, allocations: 6.281 kB / 383.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.01507/0.0151, allocations: 4.783 MB / 388.5 MB, free: 8.934 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00743/0.02253, allocations: 2.356 MB / 390.8 MB, free: 6.566 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004005/0.02653, allocations: 35.75 kB / 390.9 MB, free: 6.531 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.02756, allocations: 289.5 kB / 391.1 MB, free: 6.246 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004126/0.03168, allocations: 373.3 kB / 391.5 MB, free: 5.879 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001497/0.03318, allocations: 0.6145 MB / 392.1 MB, free: 5.266 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00185/0.03503, allocations: 1.356 MB / 393.5 MB, free: 3.902 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000577/0.03561, allocations: 311.9 kB / 393.8 MB, free: 3.578 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001099/0.03671, allocations: 0.7287 MB / 394.5 MB, free: 2.848 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005841/0.03729, allocations: 398.7 kB / 394.9 MB, free: 2.457 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.03748, allocations: 124 kB / 395 MB, free: 2.336 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003139/0.03779, allocations: 179.9 kB / 395.2 MB, free: 2.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002595/0.03805, allocations: 382.7 kB / 395.6 MB, free: 1.785 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004413/0.0385, allocations: 402.8 kB / 396 MB, free: 1.391 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.04007, allocations: 1.628 MB / 397.6 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.04008, allocations: 4 kB / 397.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.04008, allocations: 0 / 397.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.012e-05/0.04013, allocations: 0 / 397.6 MB, free: 15.75 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.002518/0.04265, allocations: 1.668 MB / 399.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.0427, allocations: 8.031 kB / 399.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.043, allocations: 171.9 kB / 399.4 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.04416, allocations: 0.9064 MB / 400.3 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.852e-05/0.04421, allocations: 62.38 kB / 400.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.455e-05/0.04431, allocations: 88.31 kB / 400.5 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.04543, allocations: 0.9812 MB / 401.5 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.04546, allocations: 11.89 kB / 401.5 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.508e-05/0.04552, allocations: 36 kB / 401.5 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.04553, allocations: 19.98 kB / 401.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009097/0.04644, allocations: 0.6518 MB / 402.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003396/0.04984, allocations: 2.978 MB / 405.2 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008893/0.05073, allocations: 0.567 MB / 405.7 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/0.05105, allocations: 262.2 kB / 406 MB, free: 7.125 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.05109, allocations: 8.5 kB / 406 MB, free: 7.113 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004467/0.05154, allocations: 350.1 kB / 406.3 MB, free: 6.758 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.236e-06/0.05154, allocations: 0 / 406.3 MB, free: 6.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=68): time 0.004644/0.05619, allocations: 2.977 MB / 409.3 MB, free: 3.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.05626, allocations: 162.9 kB / 409.5 MB, free: 3.535 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.05763, allocations: 1.376 MB / 410.8 MB, free: 2.145 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.05767, allocations: 41.7 kB / 410.9 MB, free: 2.098 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003722/0.05804, allocations: 0.5835 MB / 411.5 MB, free: 1.508 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.05819, allocations: 245.9 kB / 411.7 MB, free: 1.266 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.05834, allocations: 142.6 kB / 411.8 MB, free: 1.117 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.599e-05/0.05844, allocations: 337.9 kB / 412.2 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.0588, allocations: 280.7 kB / 412.5 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1898/0.2486, allocations: 0.5355 MB / 413 MB, free: 38.42 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.2496, allocations: 0.7019 MB / 413.7 MB, free: 38.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.2496, allocations: 3.844 kB / 413.7 MB, free: 38.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001246/0.2508, allocations: 0.8741 MB / 414.6 MB, free: 38.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.2509, allocations: 7.656 kB / 414.6 MB, free: 38.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.2509, allocations: 3.062 kB / 414.6 MB, free: 38.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/0.2509, allocations: 8.938 kB / 414.6 MB, free: 38.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.2514, allocations: 194.2 kB / 414.8 MB, free: 38.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.2514, allocations: 12.09 kB / 414.8 MB, free: 38.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.2518, allocations: 56.75 kB / 414.8 MB, free: 38.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.2518, allocations: 26.64 kB / 414.9 MB, free: 38.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006743/0.2525, allocations: 0.5139 MB / 415.4 MB, free: 37.85 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003692/0.2528, allocations: 0.5012 MB / 415.9 MB, free: 37.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006307/0.2535, allocations: 0.6334 MB / 416.5 MB, free: 37.06 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.025e-06/0.2535, allocations: 2.125 kB / 416.5 MB, free: 37.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0008652/0.2543, allocations: 0.8048 MB / 417.3 MB, free: 36.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2544, allocations: 10.22 kB / 417.3 MB, free: 36.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2544, allocations: 3.531 kB / 417.3 MB, free: 36.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.2544, allocations: 8.078 kB / 417.3 MB, free: 36.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004161/0.2548, allocations: 173.5 kB / 417.5 MB, free: 36.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2548, allocations: 12.58 kB / 417.5 MB, free: 36.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.2551, allocations: 44.89 kB / 417.6 MB, free: 36.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.2551, allocations: 29.08 kB / 417.6 MB, free: 36.73 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.0001458/0.2553, allocations: 224.3 kB / 417.8 MB, free: 36.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.2554, allocations: 125.2 kB / 417.9 MB, free: 36.51 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.2569, allocations: 0.9905 MB / 418.9 MB, free: 36.13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.2569, allocations: 6.625 kB / 418.9 MB, free: 36.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.2569, allocations: 0 / 418.9 MB, free: 36.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.2569, allocations: 5.328 kB / 418.9 MB, free: 36.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002728/0.2596, allocations: 1.887 MB / 420.8 MB, free: 35.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.2596, allocations: 5.219 kB / 420.8 MB, free: 35.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.2599, allocations: 111.9 kB / 420.9 MB, free: 35.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/0.2603, allocations: 189.4 kB / 421.1 MB, free: 35.22 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.2604, allocations: 17.17 kB / 421.1 MB, free: 35.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/0.2628, allocations: 2.653 MB / 423.8 MB, free: 33.35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2628, allocations: 4.719 kB / 423.8 MB, free: 33.35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.2647, allocations: 1.413 MB / 425.2 MB, free: 32.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.265, allocations: 197.6 kB / 425.4 MB, free: 32.61 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.506e-05/0.265, allocations: 19.62 kB / 425.4 MB, free: 32.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002783/0.2653, allocations: 43.77 kB / 425.5 MB, free: 32.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.2654, allocations: 53.78 kB / 425.5 MB, free: 32.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.919e-05/0.2655, allocations: 21.2 kB / 425.5 MB, free: 32.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001083/0.2666, allocations: 0.9746 MB / 426.5 MB, free: 32.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2666, allocations: 0 / 426.5 MB, free: 32.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009039/0.2675, allocations: 327.8 kB / 426.8 MB, free: 32.19 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.001016/0.2685, allocations: 479.6 kB / 427.3 MB, free: 32.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.2699, allocations: 0.9649 MB / 428.3 MB, free: 31.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2699, allocations: 1.656 kB / 428.3 MB, free: 31.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006472/0.2705, allocations: 0.4885 MB / 428.8 MB, free: 31.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.2712, allocations: 211.4 kB / 429 MB, free: 31.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.274, allocations: 2.462 MB / 431.4 MB, free: 30.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.2744, allocations: 0.5524 MB / 432 MB, free: 29.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.2746, allocations: 70.75 kB / 432.1 MB, free: 29.94 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2746, allocations: 0 / 432.1 MB, free: 29.94 MB / 330.7 MB Notification: Performance of Templates: time 0.0145/0.2891, allocations: 17.53 MB / 449.6 MB, free: 13.37 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 > BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 5.905338213779032]