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.001348/0.001348, allocations: 100.4 kB / 19.7 MB, free: 440 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.001708/0.001708, allocations: 211.6 kB / 22.99 MB, free: 2.961 MB / 13.93 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.057/1.057, allocations: 230.6 MB / 256.8 MB, free: 9.59 MB / 202.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.008213/0.008213, allocations: 1.752 MB / 314.9 MB, free: 156 kB / 234.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: BikeTrailer requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 73.44 kB / 437.3 MB, free: 46.51 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07377/0.07542, allocations: 53.81 MB / 491.1 MB, free: 10.53 MB / 346.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.004867/0.08029, allocations: 4.751 MB / 495.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003513/0.0838, allocations: 2.353 MB / 498.2 MB, free: 3.391 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005656/0.08437, allocations: 31.75 kB / 498.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007993/0.08517, allocations: 289.7 kB / 498.5 MB, free: 3.074 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006642/0.08583, allocations: 369.6 kB / 498.9 MB, free: 2.711 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008648/0.0867, allocations: 0.588 MB / 499.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.08773, allocations: 1.392 MB / 0.4891 GB, free: 0.7266 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004284/0.08816, allocations: 315.9 kB / 0.4894 GB, free: 404 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005213/0.08868, allocations: 0.5137 MB / 0.4899 GB, free: 15.88 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004267/0.08911, allocations: 477.4 kB / 0.4904 GB, free: 15.41 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.08923, allocations: 132 kB / 0.4905 GB, free: 15.28 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.08946, allocations: 184 kB / 0.4907 GB, free: 15.1 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00022/0.08968, allocations: 382.7 kB / 0.4911 GB, free: 14.73 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003068/0.08999, allocations: 0.501 MB / 0.4915 GB, free: 14.22 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.0915, allocations: 1.634 MB / 0.4931 GB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.0915, allocations: 0 / 0.4931 GB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.0915, allocations: 0 / 0.4931 GB, free: 12.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.813e-05/0.09153, allocations: 0 / 0.4931 GB, free: 12.58 MB / 362.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.002039/0.09357, allocations: 1.692 MB / 0.4948 GB, free: 10.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.09361, allocations: 8.031 kB / 0.4948 GB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.09385, allocations: 175.9 kB / 0.495 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.0949, allocations: 0.9111 MB / 0.4959 GB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.488e-05/0.09495, allocations: 62.38 kB / 0.4959 GB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.09504, allocations: 92.08 kB / 0.496 GB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.09607, allocations: 0.9768 MB / 0.497 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.09609, allocations: 7.938 kB / 0.497 GB, free: 8.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.88e-05/0.09614, allocations: 32 kB / 0.497 GB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.09616, allocations: 20 kB / 0.497 GB, free: 8.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000835/0.09699, allocations: 0.6558 MB / 0.4977 GB, free: 7.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003249/0.1002, allocations: 2.973 MB / 0.5006 GB, free: 4.754 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008337/0.1011, allocations: 0.5659 MB / 0.5011 GB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.1014, allocations: 258.2 kB / 0.5014 GB, free: 3.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.1014, allocations: 8.5 kB / 0.5014 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004436/0.1019, allocations: 350.2 kB / 0.5017 GB, free: 3.559 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 2.224e-06/0.1019, allocations: 0 / 0.5017 GB, free: 3.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.004683/0.1066, allocations: 2.993 MB / 0.5046 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.1066, allocations: 162.9 kB / 0.5048 GB, free: 332 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.1079, allocations: 1.372 MB / 0.5061 GB, free: 14.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.1079, allocations: 41.7 kB / 0.5062 GB, free: 14.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003386/0.1083, allocations: 0.5873 MB / 0.5067 GB, free: 14.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004034/0.1087, allocations: 249.9 kB / 0.507 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.1088, allocations: 134.6 kB / 0.5071 GB, free: 13.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.255e-05/0.1089, allocations: 337.9 kB / 0.5074 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.1092, allocations: 284.7 kB / 0.5077 GB, free: 13.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004495/0.1097, allocations: 0.54 MB / 0.5082 GB, free: 12.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007584/0.1105, allocations: 0.7025 MB / 0.5089 GB, free: 11.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1105, allocations: 3.938 kB / 0.5089 GB, free: 11.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009949/0.1115, allocations: 0.8713 MB / 0.5098 GB, free: 11.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1115, allocations: 7.984 kB / 0.5098 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1115, allocations: 4 kB / 0.5098 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.1115, allocations: 8.062 kB / 0.5098 GB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.112, allocations: 195.6 kB / 0.51 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.112, allocations: 12.36 kB / 0.51 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.1123, allocations: 55.95 kB / 0.51 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.1123, allocations: 28 kB / 0.5101 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005537/0.1129, allocations: 0.5097 MB / 0.5106 GB, free: 10.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000378/0.1132, allocations: 0.5032 MB / 0.5111 GB, free: 9.621 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006299/0.1139, allocations: 0.6361 MB / 0.5117 GB, free: 8.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.285e-06/0.1139, allocations: 0 / 0.5117 GB, free: 8.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0008225/0.1147, allocations: 0.8126 MB / 0.5125 GB, free: 8.113 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.1147, allocations: 4 kB / 0.5125 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.1147, allocations: 4 kB / 0.5125 GB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-06/0.1147, allocations: 12.41 kB / 0.5125 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.1151, allocations: 179.7 kB / 0.5127 GB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.1151, allocations: 15.92 kB / 0.5127 GB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.1154, allocations: 43.97 kB / 0.5127 GB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.1154, allocations: 24 kB / 0.5127 GB, free: 7.836 MB / 378.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.0001568/0.1156, allocations: 228 kB / 0.513 GB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-05/0.1157, allocations: 123.2 kB / 0.5131 GB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.1174, allocations: 0.982 MB / 0.514 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1174, allocations: 8 kB / 0.514 GB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1174, allocations: 0 / 0.514 GB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1174, allocations: 3.984 kB / 0.514 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002263/0.1197, allocations: 1.891 MB / 0.5159 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1197, allocations: 0 / 0.5159 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.12, allocations: 116 kB / 0.516 GB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004213/0.1204, allocations: 200.7 kB / 0.5162 GB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.1204, allocations: 16 kB / 0.5162 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.1229, allocations: 2.645 MB / 0.5188 GB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1229, allocations: 3.984 kB / 0.5188 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.1246, allocations: 1.41 MB / 0.5202 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.1249, allocations: 199.1 kB / 0.5204 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.889e-05/0.125, allocations: 20 kB / 0.5204 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.1253, allocations: 43.95 kB / 0.5204 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.1254, allocations: 60.58 kB / 0.5205 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.1254, allocations: 19.94 kB / 0.5205 GB, free: 15.69 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.1266, allocations: 0.9776 MB / 0.5215 GB, free: 14.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1266, allocations: 0 / 0.5215 GB, free: 14.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007251/0.1273, allocations: 324 kB / 0.5218 GB, free: 14.39 MB / 394.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.0009996/0.1283, allocations: 458.5 kB / 0.5222 GB, free: 14.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.1295, allocations: 0.9669 MB / 0.5231 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1295, allocations: 0.5 kB / 0.5231 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000604/0.1301, allocations: 0.4904 MB / 0.5236 GB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006289/0.1307, allocations: 218.5 kB / 0.5238 GB, free: 12.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.1335, allocations: 2.622 MB / 0.5264 GB, free: 9.766 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.134, allocations: 0.5554 MB / 0.5269 GB, free: 9.172 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.1341, allocations: 75.42 kB / 0.527 GB, free: 9.098 MB / 394.7 MB Notification: Performance of SimCode: time 7.02e-07/0.1341, allocations: 0 / 0.527 GB, free: 9.098 MB / 394.7 MB Notification: Performance of Templates: time 0.01727/0.1514, allocations: 17.46 MB / 0.5441 GB, free: 7.664 MB / 410.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: 6.733130685985088]