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.0008568/0.0008568, 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.0008955/0.0008955, 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 0.9665/0.9665, allocations: 177.2 MB / 203.8 MB, free: 5.473 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.005691/0.005691, allocations: 1.329 MB / 261.6 MB, free: 11.62 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.483e-06/1.483e-06, allocations: 0 / 278.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.265e-05/1.414e-05, allocations: 2.312 kB / 278.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.007565/0.007579, allocations: 8.56 MB / 287 MB, free: 2.145 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1196/0.1272, allocations: 4.308 MB / 291.3 MB, free: 19.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001538/0.1287, allocations: 61.28 kB / 291.4 MB, free: 19.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.1303, allocations: 0.6479 MB / 292 MB, free: 19.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.1318, allocations: 0.6278 MB / 292.7 MB, free: 19.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.1333, allocations: 0.934 MB / 293.6 MB, free: 19.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002553/0.1359, allocations: 2.526 MB / 296.1 MB, free: 17.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009632/0.1368, allocations: 0.6872 MB / 296.8 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.1386, allocations: 1.376 MB / 298.2 MB, free: 16.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008182/0.1395, allocations: 0.689 MB / 298.9 MB, free: 16.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.1398, allocations: 253.6 kB / 299.1 MB, free: 16.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.1402, allocations: 304.8 kB / 299.4 MB, free: 16.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003783/0.1405, allocations: 0.5953 MB / 300 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000586/0.1411, allocations: 0.7197 MB / 300.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001557/0.1427, allocations: 1.74 MB / 302.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1427, allocations: 0.625 kB / 302.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1427, allocations: 1.156 kB / 302.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.078e-05/0.1427, allocations: 7.531 kB / 302.5 MB, free: 14.93 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.002737/0.1455, allocations: 2.434 MB / 304.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.1455, allocations: 10.33 kB / 304.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004704/0.146, allocations: 293.2 kB / 305.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.1472, allocations: 0.9478 MB / 306.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.479e-05/0.1473, allocations: 120.5 kB / 306.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002071/0.1475, allocations: 179.2 kB / 306.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.1487, allocations: 1.406 MB / 307.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.1487, allocations: 13.14 kB / 307.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.15e-05/0.1488, allocations: 64.38 kB / 307.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.574e-05/0.1488, allocations: 37.97 kB / 308 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006433/0.1495, allocations: 418 kB / 308.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004375/0.1538, allocations: 4.37 MB / 312.8 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.1546, allocations: 0.5524 MB / 313.3 MB, free: 7.574 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.1548, allocations: 159.3 kB / 313.5 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.408e-05/0.1548, allocations: 24.98 kB / 313.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.1552, allocations: 493.6 kB / 314 MB, free: 6.883 MB / 266.7 MB Notification: Performance of pre-optimization done (n=94): time 2.365e-06/0.1552, allocations: 7.938 kB / 314 MB, free: 6.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=103): time 0.002749/0.158, allocations: 1.879 MB / 315.9 MB, free: 4.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.158, allocations: 222.6 kB / 316.1 MB, free: 4.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000953/0.159, allocations: 1.277 MB / 317.4 MB, free: 3.637 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.159, allocations: 49.7 kB / 317.4 MB, free: 3.582 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/0.1593, allocations: 0.6985 MB / 318.1 MB, free: 2.941 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.1595, allocations: 393.4 kB / 318.5 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.1597, allocations: 209.1 kB / 318.7 MB, free: 2.398 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.85e-05/0.1598, allocations: 359.8 kB / 319 MB, free: 2.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.16, allocations: 130.9 kB / 319.2 MB, free: 1.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003321/0.1603, allocations: 0.603 MB / 319.8 MB, free: 1.184 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005675/0.1609, allocations: 0.6532 MB / 320.4 MB, free: 456 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.1609, allocations: 4 kB / 320.4 MB, free: 452 kB / 266.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.000831/0.1617, allocations: 0.6543 MB / 321.1 MB, free: 15.78 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1617, allocations: 15.88 kB / 321.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1617, allocations: 8 kB / 321.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.1617, allocations: 19.98 kB / 321.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007153/0.1625, allocations: 272.1 kB / 321.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.1625, allocations: 23.92 kB / 321.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.1629, allocations: 59.97 kB / 321.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-05/0.163, allocations: 40 kB / 321.5 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004018/0.1634, allocations: 220.4 kB / 321.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004315/0.1638, allocations: 0.5962 MB / 322.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006531/0.1645, allocations: 0.6387 MB / 323 MB, free: 13.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.741e-06/0.1645, allocations: 4 kB / 323 MB, free: 13.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.0008405/0.1653, allocations: 0.6488 MB / 323.6 MB, free: 13 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.1653, allocations: 8 kB / 323.6 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1653, allocations: 8 kB / 323.6 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1653, allocations: 19.94 kB / 323.6 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006333/0.166, allocations: 267.6 kB / 323.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.166, allocations: 20.5 kB / 323.9 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.1664, allocations: 63.97 kB / 324 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/0.1665, allocations: 36 kB / 324 MB, free: 12.59 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.0001812/0.1667, allocations: 261.9 kB / 324.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.1668, allocations: 131.9 kB / 324.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.1679, allocations: 0.5446 MB / 325 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.1679, allocations: 12 kB / 325 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.1679, allocations: 4 kB / 325 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.1679, allocations: 3.984 kB / 325 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001936/0.1698, allocations: 1.364 MB / 326.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1698, allocations: 0 / 326.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006196/0.1705, allocations: 203.7 kB / 326.5 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.1705, allocations: 12.09 kB / 326.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.1705, allocations: 20 kB / 326.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.1705, allocations: 8 kB / 326.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1705, allocations: 0 / 326.6 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009662/0.1715, allocations: 0.8305 MB / 327.4 MB, free: 9.312 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.1718, allocations: 166.8 kB / 327.6 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.1719, allocations: 28 kB / 327.6 MB, free: 9.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.1723, allocations: 47.97 kB / 327.6 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/0.1723, allocations: 68.81 kB / 327.7 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/0.1724, allocations: 23.98 kB / 327.7 MB, free: 8.984 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005023/0.1729, allocations: 0.6717 MB / 328.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1729, allocations: 0 / 328.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008012/0.1737, allocations: 0.5039 MB / 328.9 MB, free: 7.879 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.001172/0.1748, allocations: 0.5479 MB / 329.5 MB, free: 7.621 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008772/0.1757, allocations: 0.8345 MB / 330.3 MB, free: 6.812 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.188e-05/0.1757, allocations: 16.5 kB / 330.3 MB, free: 6.797 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.176, allocations: 261.5 kB / 330.6 MB, free: 6.551 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.1768, allocations: 351.6 kB / 330.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003863/0.1806, allocations: 3.176 MB / 334.1 MB, free: 3.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.1809, allocations: 336.1 kB / 334.4 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004793/0.1813, allocations: 202.7 kB / 334.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005025/0.1818, allocations: 337.1 kB / 334.9 MB, free: 2.129 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1818, allocations: 0 / 334.9 MB, free: 2.129 MB / 282.7 MB Notification: Performance of Templates: time 0.02194/0.2038, allocations: 18 MB / 352.9 MB, free: 424 kB / 298.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: 3.7459431309252977]