Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.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.00109/0.00109, allocations: 81.53 kB / 20.8 MB, free: 3.656 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.004303/0.004303, allocations: 169 kB / 24.22 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.8724/0.8724, allocations: 177.1 MB / 204.7 MB, free: 5.449 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.008863/0.008863, allocations: 1.323 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.TestTrailerDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM") translateModel(BikeTrailer.Examples.TestTrailerDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 279.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.102e-05/1.218e-05, allocations: 2.312 kB / 279.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.006585/0.006598, allocations: 8.597 MB / 288.1 MB, free: 1.957 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.09958/0.1062, allocations: 4.31 MB / 292.4 MB, free: 19.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.1074, allocations: 61.5 kB / 292.4 MB, free: 19.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.1088, allocations: 0.6681 MB / 293.1 MB, free: 19.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.11, allocations: 0.6202 MB / 293.7 MB, free: 19.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.1113, allocations: 0.9345 MB / 294.7 MB, free: 19.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00205/0.1133, allocations: 2.524 MB / 297.2 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008179/0.1141, allocations: 0.6805 MB / 297.9 MB, free: 17.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.1156, allocations: 1.388 MB / 299.2 MB, free: 16.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006908/0.1163, allocations: 0.6883 MB / 299.9 MB, free: 16.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002734/0.1165, allocations: 254.4 kB / 300.2 MB, free: 16.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000372/0.1169, allocations: 316.2 kB / 300.5 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.1172, allocations: 0.5872 MB / 301.1 MB, free: 16.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005435/0.1177, allocations: 0.7202 MB / 301.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.119, allocations: 1.739 MB / 303.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.119, allocations: 0.9062 kB / 303.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.119, allocations: 0 / 303.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.119, allocations: 0.5625 kB / 303.5 MB, free: 14.88 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: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.001974/0.121, allocations: 2.437 MB / 306 MB, free: 13.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/0.121, allocations: 13.22 kB / 306 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.1214, allocations: 294.6 kB / 306.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009215/0.1223, allocations: 0.952 MB / 307.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.551e-05/0.1224, allocations: 120.5 kB / 307.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.1225, allocations: 180.3 kB / 307.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000934/0.1235, allocations: 1.401 MB / 308.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/0.1235, allocations: 9.094 kB / 308.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.95e-05/0.1235, allocations: 67.84 kB / 309 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1236, allocations: 37.53 kB / 309 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004845/0.1241, allocations: 415.3 kB / 309.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003303/0.1274, allocations: 4.363 MB / 313.8 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005574/0.1279, allocations: 0.5518 MB / 314.4 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.1281, allocations: 168.8 kB / 314.5 MB, free: 7.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.1281, allocations: 17 kB / 314.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.1284, allocations: 494.4 kB / 315 MB, free: 6.738 MB / 266.7 MB Notification: Performance of pre-optimization done (n=94): time 1.703e-06/0.1284, allocations: 0 / 315 MB, free: 6.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=103): time 0.002132/0.1305, allocations: 1.896 MB / 316.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.1306, allocations: 218.6 kB / 317.1 MB, free: 4.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006738/0.1312, allocations: 1.281 MB / 318.4 MB, free: 3.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.1313, allocations: 45.7 kB / 318.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.1315, allocations: 0.7046 MB / 319.2 MB, free: 2.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.1316, allocations: 386.4 kB / 319.5 MB, free: 2.434 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.1318, allocations: 214.6 kB / 319.7 MB, free: 2.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.924e-05/0.1318, allocations: 358.5 kB / 320.1 MB, free: 1.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.1319, allocations: 128.9 kB / 320.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.1322, allocations: 0.6016 MB / 320.8 MB, free: 1.039 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004035/0.1326, allocations: 0.6536 MB / 321.5 MB, free: 304 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1326, allocations: 0 / 321.5 MB, free: 304 kB / 266.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.0006326/0.1332, allocations: 0.6601 MB / 322.1 MB, free: 15.63 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1332, allocations: 20 kB / 322.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1332, allocations: 8 kB / 322.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1333, allocations: 12 kB / 322.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006253/0.1339, allocations: 334.2 kB / 322.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1339, allocations: 16 kB / 322.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000314/0.1342, allocations: 63.97 kB / 322.6 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.1342, allocations: 39.94 kB / 322.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003033/0.1346, allocations: 219.7 kB / 322.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003147/0.1349, allocations: 0.595 MB / 323.4 MB, free: 14.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004731/0.1353, allocations: 0.6286 MB / 324.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.419e-06/0.1353, allocations: 2.656 kB / 324.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.0006215/0.136, allocations: 0.6599 MB / 324.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.136, allocations: 12 kB / 324.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.136, allocations: 8 kB / 324.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.136, allocations: 16 kB / 324.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005747/0.1366, allocations: 313.7 kB / 325.1 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.1366, allocations: 20.19 kB / 325.1 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003108/0.1369, allocations: 63.97 kB / 325.1 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.1369, allocations: 40 kB / 325.2 MB, free: 12.35 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.track.nextTimeEvent,$whenCondition1,trailer.energyBike.local_reset,trailer.energyDrive.local_reset,PID.I.local_reset,dcpmDrive.dcdcConverter.integralController.local_reset,dcpmDrive.dcdcConverter.EBat.local_reset,dcpmDrive.battery.soc.local_reset,dcpmDrive.limitedPI.integrator.local_reset,track.nextTimeEventScaled,$PRE.track.nextTimeEventScaled,track.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 155 * 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.0001425/0.1371, allocations: 261.8 kB / 325.4 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.1372, allocations: 127.9 kB / 325.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005476/0.1377, allocations: 0.5408 MB / 326.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.1377, allocations: 16 kB / 326.1 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.1377, allocations: 0 / 326.1 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-05/0.1378, allocations: 7.969 kB / 326.1 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.1393, allocations: 1.375 MB / 327.5 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.1393, allocations: 4 kB / 327.5 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005566/0.1399, allocations: 242.2 kB / 327.7 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.1399, allocations: 11.98 kB / 327.8 MB, free: 9.887 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.1399, allocations: 20 kB / 327.8 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.1399, allocations: 11.94 kB / 327.8 MB, free: 9.855 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1399, allocations: 0 / 327.8 MB, free: 9.855 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007284/0.1407, allocations: 0.816 MB / 328.6 MB, free: 9.035 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.1409, allocations: 174.8 kB / 328.8 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.22e-05/0.141, allocations: 24 kB / 328.8 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.1413, allocations: 51.97 kB / 328.8 MB, free: 8.789 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/0.1414, allocations: 68.81 kB / 328.9 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.1414, allocations: 19.98 kB / 328.9 MB, free: 8.703 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005144/0.1419, allocations: 0.6687 MB / 329.6 MB, free: 8.102 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1419, allocations: 0 / 329.6 MB, free: 8.102 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007792/0.1427, allocations: 0.5078 MB / 330.1 MB, free: 7.594 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 15 (trailer.energyBike.y,trailer.vehicle.windSpeed.s,trailer.vehicle.windSpeed.v,trailer.energyDrive.y,PID.I.y,PID.D.x,bike.s,bike.v,dcpmDrive.dcpm.armatureInductance.i,dcpmDrive.dcdcConverter.deadTime.y,dcpmDrive.dcdcConverter.integralController.y,dcpmDrive.dcdcConverter.currentSampler.y,dcpmDrive.dcdcConverter.EBat.y,dcpmDrive.battery.soc.y,dcpmDrive.limitedPI.integrator.y) * 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 (107): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00103/0.1437, allocations: 0.5342 MB / 330.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008161/0.1445, allocations: 0.8436 MB / 331.5 MB, free: 6.527 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.826e-05/0.1446, allocations: 16.5 kB / 331.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002448/0.1448, allocations: 261 kB / 331.8 MB, free: 6.258 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007143/0.1455, allocations: 345.7 kB / 332.1 MB, free: 5.934 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.1492, allocations: 3.188 MB / 335.3 MB, free: 2.684 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.1494, allocations: 336.1 kB / 335.6 MB, free: 2.328 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004887/0.1499, allocations: 202.7 kB / 335.8 MB, free: 2.125 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/0.1504, allocations: 337.1 kB / 336.1 MB, free: 1.793 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1504, allocations: 0 / 336.1 MB, free: 1.793 MB / 282.7 MB Notification: Performance of Templates: time 0.02293/0.1733, allocations: 18.21 MB / 354.4 MB, free: 15.86 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.makefile [Timeout 660] (rm -f BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.sim & ./BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM -abortSlowSimulation -alarm=240 -lv LOG_STATS > BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.236512846313417]