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.0008734/0.0008734, allocations: 80.88 kB / 20.8 MB, free: 3.66 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.000906/0.000906, allocations: 165 kB / 24.23 MB, free: 244 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.8677/0.8677, allocations: 177.1 MB / 204.7 MB, free: 5.457 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.005425/0.005425, allocations: 1.322 MB / 262.5 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.152e-06/1.152e-06, allocations: 0 / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.635e-05, allocations: 4.984 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.004467/0.004483, allocations: 5.061 MB / 284.5 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002653/0.007137, allocations: 2.464 MB / 287 MB, free: 3.047 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003133/0.00745, allocations: 35.75 kB / 287 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006175/0.008068, allocations: 293.6 kB / 287.3 MB, free: 2.723 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005033/0.008571, allocations: 381.2 kB / 287.7 MB, free: 2.348 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006635/0.009234, allocations: 0.6042 MB / 288.3 MB, free: 1.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00083/0.01006, allocations: 1.348 MB / 289.6 MB, free: 400 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004538/0.01052, allocations: 335.8 kB / 290 MB, free: 32 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09333/0.1039, allocations: 0.7142 MB / 290.7 MB, free: 19.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005523/0.1044, allocations: 410.4 kB / 291.1 MB, free: 19.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.1047, allocations: 124.5 kB / 291.2 MB, free: 19.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.105, allocations: 178.8 kB / 291.4 MB, free: 19.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002633/0.1053, allocations: 391 kB / 291.7 MB, free: 19.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003922/0.1056, allocations: 403.2 kB / 292.1 MB, free: 19.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.1067, allocations: 1.04 MB / 293.2 MB, free: 19.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1067, allocations: 1.25 kB / 293.2 MB, free: 19.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1067, allocations: 0 / 293.2 MB, free: 19.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.621e-05/0.1067, allocations: 1.656 kB / 293.2 MB, free: 19.78 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.001772/0.1085, allocations: 1.584 MB / 294.8 MB, free: 18.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.1085, allocations: 10.22 kB / 294.8 MB, free: 18.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002922/0.1088, allocations: 169.2 kB / 294.9 MB, free: 18.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007264/0.1096, allocations: 0.6772 MB / 295.6 MB, free: 18.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.316e-05/0.1096, allocations: 64.19 kB / 295.7 MB, free: 18.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.688e-05/0.1097, allocations: 88.31 kB / 295.8 MB, free: 18.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000677/0.1104, allocations: 0.7121 MB / 296.5 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.1104, allocations: 10.66 kB / 296.5 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.1104, allocations: 36.78 kB / 296.5 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.1104, allocations: 20.62 kB / 296.5 MB, free: 18.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.1108, allocations: 238 kB / 296.8 MB, free: 18.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.1128, allocations: 2.158 MB / 298.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.1133, allocations: 344.3 kB / 299.3 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.1134, allocations: 88.67 kB / 299.4 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.1134, allocations: 11.64 kB / 299.4 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.1136, allocations: 204.6 kB / 299.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 3.086e-06/0.1136, allocations: 0.7812 kB / 299.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=68): time 0.002599/0.1162, allocations: 1.668 MB / 301.2 MB, free: 16.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.1163, allocations: 166 kB / 301.4 MB, free: 16.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.117, allocations: 0.9526 MB / 302.4 MB, free: 16.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.117, allocations: 42.61 kB / 302.4 MB, free: 16.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.1172, allocations: 414.1 kB / 302.8 MB, free: 16.13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.1173, allocations: 255.6 kB / 303.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1174, allocations: 135.9 kB / 303.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.1174, allocations: 341 kB / 303.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1176, allocations: 87 kB / 303.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.1177, allocations: 359.3 kB / 304 MB, free: 15.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.118, allocations: 374.3 kB / 304.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.118, allocations: 1.344 kB / 304.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0004154/0.1185, allocations: 424.9 kB / 304.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1185, allocations: 6.156 kB / 304.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.1185, allocations: 4.781 kB / 304.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1185, allocations: 7.906 kB / 304.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/0.119, allocations: 237.9 kB / 305 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.119, allocations: 16.34 kB / 305 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.1192, allocations: 32.48 kB / 305 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.1192, allocations: 22.19 kB / 305.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000188/0.1194, allocations: 170.1 kB / 305.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001322/0.1195, allocations: 358.7 kB / 305.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002326/0.1198, allocations: 369.7 kB / 305.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.414e-06/0.1198, allocations: 3.938 kB / 305.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0003595/0.1201, allocations: 413.9 kB / 306.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.1201, allocations: 9.141 kB / 306.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.1201, allocations: 6.156 kB / 306.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.41e-06/0.1201, allocations: 6 kB / 306.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.1205, allocations: 229.7 kB / 306.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1205, allocations: 14.69 kB / 306.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.1207, allocations: 29.78 kB / 306.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.1208, allocations: 19.28 kB / 306.6 MB, free: 14.26 MB / 266.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 9.311e-05/0.1209, allocations: 241.8 kB / 306.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.8e-05/0.1209, allocations: 88.88 kB / 307 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005406/0.1215, allocations: 493.9 kB / 307.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1215, allocations: 9.969 kB / 307.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.1215, allocations: 0 / 307.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.1215, allocations: 10.22 kB / 307.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.1226, allocations: 1.077 MB / 308.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1226, allocations: 0 / 308.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002659/0.1229, allocations: 120.2 kB / 308.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003068/0.1232, allocations: 128.9 kB / 308.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.1232, allocations: 19.98 kB / 308.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.1242, allocations: 1.851 MB / 310.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1242, allocations: 2.734 kB / 310.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005938/0.1248, allocations: 0.7127 MB / 311.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.125, allocations: 137.9 kB / 311.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.183e-05/0.125, allocations: 12 kB / 311.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.1252, allocations: 39.92 kB / 311.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.708e-05/0.1253, allocations: 56.48 kB / 311.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.1253, allocations: 16 kB / 311.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002676/0.1256, allocations: 472.1 kB / 312.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1256, allocations: 0 / 312.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000549/0.1261, allocations: 327.9 kB / 312.4 MB, free: 9.551 MB / 266.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.0009921/0.1271, allocations: 0.5272 MB / 312.9 MB, free: 9.344 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00047/0.1276, allocations: 0.5111 MB / 313.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.1276, allocations: 12.69 kB / 313.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000269/0.1279, allocations: 347.4 kB / 313.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.1284, allocations: 226.6 kB / 314 MB, free: 8.324 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.1303, allocations: 2.064 MB / 316.1 MB, free: 6.238 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.1304, allocations: 248.7 kB / 316.3 MB, free: 5.969 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002853/0.1307, allocations: 131.2 kB / 316.5 MB, free: 5.836 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.131, allocations: 233.2 kB / 316.7 MB, free: 5.605 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.131, allocations: 4 kB / 316.7 MB, free: 5.602 MB / 266.7 MB Notification: Performance of Templates: time 0.01658/0.1476, allocations: 14.11 MB / 330.8 MB, free: 7.758 MB / 282.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.044257870875299]