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.001436/0.001436, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001625/0.001625, allocations: 177.4 kB / 23.36 MB, free: 1.129 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 1.025/1.025, allocations: 177.2 MB / 203.8 MB, free: 5.469 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.006178/0.006178, allocations: 1.325 MB / 261.6 MB, free: 11.61 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.523e-06/1.523e-06, allocations: 0 / 278.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.221e-05/2.374e-05, allocations: 2.312 kB / 278.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.008129/0.008152, allocations: 8.6 MB / 287.1 MB, free: 2.047 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1347/0.1429, allocations: 4.313 MB / 291.4 MB, free: 19.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.1443, allocations: 61.97 kB / 291.5 MB, free: 19.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.1459, allocations: 0.6699 MB / 292.2 MB, free: 19.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001438/0.1473, allocations: 0.6217 MB / 292.8 MB, free: 19.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.1488, allocations: 0.9285 MB / 293.7 MB, free: 19.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002339/0.1512, allocations: 2.528 MB / 296.2 MB, free: 17.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009756/0.1521, allocations: 0.6854 MB / 296.9 MB, free: 17.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001897/0.154, allocations: 1.377 MB / 298.3 MB, free: 16.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.1552, allocations: 0.6961 MB / 299 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004294/0.1556, allocations: 253.6 kB / 299.2 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000494/0.1561, allocations: 306.7 kB / 299.5 MB, free: 16.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.1565, allocations: 0.5965 MB / 300.1 MB, free: 16.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007823/0.1572, allocations: 0.7196 MB / 300.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.1592, allocations: 1.741 MB / 302.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1592, allocations: 0 / 302.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1592, allocations: 1.75 kB / 302.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.064e-05/0.1592, allocations: 3.594 kB / 302.6 MB, free: 14.82 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.002727/0.162, allocations: 2.428 MB / 305 MB, free: 13.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.162, allocations: 12.52 kB / 305 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004675/0.1625, allocations: 299.5 kB / 305.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.1636, allocations: 0.9444 MB / 306.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.74e-05/0.1637, allocations: 123 kB / 306.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/0.1639, allocations: 177.7 kB / 306.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.1651, allocations: 1.408 MB / 308 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.1651, allocations: 10.48 kB / 308 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.989e-05/0.1652, allocations: 63.19 kB / 308 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.1652, allocations: 37.56 kB / 308.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005861/0.1658, allocations: 420.8 kB / 308.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.1698, allocations: 4.363 MB / 312.9 MB, free: 7.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006242/0.1704, allocations: 0.556 MB / 313.4 MB, free: 7.441 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.1706, allocations: 159.1 kB / 313.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.1707, allocations: 21 kB / 313.6 MB, free: 7.262 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003265/0.171, allocations: 0.4892 MB / 314.1 MB, free: 6.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=94): time 1.904e-06/0.171, allocations: 0 / 314.1 MB, free: 6.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=103): time 0.002435/0.1734, allocations: 1.883 MB / 316 MB, free: 4.852 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.1735, allocations: 222.6 kB / 316.2 MB, free: 4.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008145/0.1743, allocations: 1.281 MB / 317.5 MB, free: 3.504 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.1743, allocations: 49.7 kB / 317.5 MB, free: 3.449 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.1746, allocations: 0.6964 MB / 318.2 MB, free: 2.812 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000339/0.1749, allocations: 393.8 kB / 318.6 MB, free: 2.449 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.1751, allocations: 210.5 kB / 318.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.141e-05/0.1752, allocations: 360.5 kB / 319.1 MB, free: 1.934 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.1754, allocations: 128.9 kB / 319.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.1757, allocations: 0.5985 MB / 319.9 MB, free: 1.059 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004887/0.1762, allocations: 0.6596 MB / 320.5 MB, free: 320 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1762, allocations: 4 kB / 320.5 MB, free: 316 kB / 266.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.0008456/0.177, allocations: 0.6619 MB / 321.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.177, allocations: 11.94 kB / 321.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.177, allocations: 8 kB / 321.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.1771, allocations: 16 kB / 321.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007515/0.1778, allocations: 328.5 kB / 321.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.1778, allocations: 23.92 kB / 321.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/0.1783, allocations: 59.97 kB / 321.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/0.1784, allocations: 36 kB / 321.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005497/0.1789, allocations: 220.4 kB / 321.9 MB, free: 14.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003821/0.1793, allocations: 0.5982 MB / 322.5 MB, free: 14.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005469/0.1798, allocations: 0.6281 MB / 323.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.032e-06/0.1798, allocations: 10.66 kB / 323.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.0007212/0.1806, allocations: 0.6562 MB / 323.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.1806, allocations: 8 kB / 323.8 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1806, allocations: 8.844 kB / 323.8 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1806, allocations: 16 kB / 323.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006402/0.1812, allocations: 315.5 kB / 324.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1813, allocations: 19.94 kB / 324.1 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.1816, allocations: 59.97 kB / 324.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.647e-05/0.1817, allocations: 40 kB / 324.2 MB, free: 12.36 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.0001957/0.1819, allocations: 261.9 kB / 324.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.182, allocations: 131.9 kB / 324.6 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006809/0.1827, allocations: 0.5331 MB / 325.2 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.1827, allocations: 8 kB / 325.2 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.1827, allocations: 0 / 325.2 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.1827, allocations: 7.969 kB / 325.2 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.1845, allocations: 1.383 MB / 326.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1845, allocations: 0 / 326.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005747/0.1851, allocations: 242.8 kB / 326.8 MB, free: 9.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1851, allocations: 4 kB / 326.8 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.168e-05/0.1851, allocations: 27.98 kB / 326.8 MB, free: 9.887 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1851, allocations: 4 kB / 326.8 MB, free: 9.883 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1851, allocations: 3.938 kB / 326.8 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008199/0.186, allocations: 0.8255 MB / 327.7 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002623/0.1862, allocations: 171.7 kB / 327.8 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.1863, allocations: 27.98 kB / 327.8 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.1866, allocations: 51.97 kB / 327.9 MB, free: 8.801 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.421e-05/0.1867, allocations: 60.88 kB / 328 MB, free: 8.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.1867, allocations: 19.98 kB / 328 MB, free: 8.723 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005498/0.1873, allocations: 0.6743 MB / 328.7 MB, free: 8.117 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1873, allocations: 3.938 kB / 328.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009515/0.1882, allocations: 0.5078 MB / 329.2 MB, free: 7.605 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.00121/0.1895, allocations: 0.5376 MB / 329.7 MB, free: 7.371 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009362/0.1904, allocations: 0.8373 MB / 330.5 MB, free: 6.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.299e-05/0.1904, allocations: 16.5 kB / 330.6 MB, free: 6.543 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002522/0.1907, allocations: 271 kB / 330.8 MB, free: 6.289 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000824/0.1915, allocations: 346.6 kB / 331.2 MB, free: 5.965 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/0.196, allocations: 3.167 MB / 334.3 MB, free: 2.766 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.1963, allocations: 336.1 kB / 334.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006866/0.197, allocations: 194.8 kB / 334.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005765/0.1976, allocations: 341.1 kB / 335.2 MB, free: 1.879 MB / 282.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1976, allocations: 7.938 kB / 335.2 MB, free: 1.871 MB / 282.7 MB Notification: Performance of Templates: time 0.03163/0.2292, allocations: 18.2 MB / 353.4 MB, free: 15.95 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.609286661725491]