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.0009835/0.0009835, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009906/0.0009906, allocations: 169 kB / 23.02 MB, free: 1.543 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.9225/0.9225, allocations: 177.1 MB / 203.4 MB, free: 5.105 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.005541/0.005541, allocations: 1.312 MB / 261.3 MB, free: 11.64 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.553e-06/1.553e-06, allocations: 0 / 331.3 MB, free: 18.13 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.685e-05/1.841e-05, allocations: 2.312 kB / 331.3 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.006556/0.006574, allocations: 8.713 MB / 340 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004219/0.01079, allocations: 4.202 MB / 344.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006909/0.01148, allocations: 63.56 kB / 344.2 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.01255, allocations: 0.6473 MB / 344.9 MB, free: 4.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008107/0.01336, allocations: 0.6241 MB / 345.5 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008645/0.01423, allocations: 0.9243 MB / 346.4 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.01543, allocations: 2.541 MB / 349 MB, free: 332 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006862/0.01612, allocations: 0.6622 MB / 349.6 MB, free: 15.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.01717, allocations: 1.376 MB / 351 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006409/0.01781, allocations: 0.6853 MB / 351.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002226/0.01803, allocations: 256 kB / 352 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002842/0.01832, allocations: 303.9 kB / 352.3 MB, free: 13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.01862, allocations: 0.5917 MB / 352.8 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.01906, allocations: 0.7168 MB / 353.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001391/0.02045, allocations: 1.74 MB / 355.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.02046, allocations: 0 / 355.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.02046, allocations: 0 / 355.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.713e-05/0.02048, allocations: 7.938 kB / 355.3 MB, free: 9.93 MB / 282.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.003705/0.02418, allocations: 2.605 MB / 357.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.02423, allocations: 8.031 kB / 357.9 MB, free: 7.262 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006959/0.02493, allocations: 403.2 kB / 358.3 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.02694, allocations: 1.303 MB / 359.6 MB, free: 5.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.02704, allocations: 119.5 kB / 359.7 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/0.02733, allocations: 176.5 kB / 359.9 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002344/0.02967, allocations: 1.513 MB / 361.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.827e-05/0.02972, allocations: 19.88 kB / 361.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.02984, allocations: 68 kB / 361.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/0.02988, allocations: 40 kB / 361.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.03126, allocations: 0.5825 MB / 362.1 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008128/0.03939, allocations: 6.18 MB / 368.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.04077, allocations: 0.6033 MB / 368.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/0.04125, allocations: 221.1 kB / 369.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.545e-05/0.0413, allocations: 20.98 kB / 369.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007112/0.04201, allocations: 0.5137 MB / 369.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=94): time 3.146e-06/0.04202, allocations: 0 / 369.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.004042/0.04606, allocations: 2.511 MB / 372.2 MB, free: 8.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.04615, allocations: 218.6 kB / 372.4 MB, free: 8.203 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.0474, allocations: 1.453 MB / 373.8 MB, free: 6.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.039e-05/0.04746, allocations: 49.7 kB / 373.9 MB, free: 6.672 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005699/0.04803, allocations: 1.035 MB / 374.9 MB, free: 5.621 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.04823, allocations: 384.7 kB / 375.3 MB, free: 5.242 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.04845, allocations: 220.6 kB / 375.5 MB, free: 5.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.04858, allocations: 0.5199 MB / 376 MB, free: 4.492 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.04887, allocations: 184.8 kB / 376.2 MB, free: 4.309 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005387/0.04941, allocations: 0.7804 MB / 377 MB, free: 3.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007754/0.05019, allocations: 0.8117 MB / 377.8 MB, free: 2.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.05019, allocations: 3.938 kB / 377.8 MB, free: 2.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.001186/0.05138, allocations: 0.9766 MB / 378.8 MB, free: 1.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.05141, allocations: 12 kB / 378.8 MB, free: 1.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.05142, allocations: 11.94 kB / 378.8 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.021e-05/0.05145, allocations: 12 kB / 378.8 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.05205, allocations: 284.1 kB / 379.1 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.05207, allocations: 23.94 kB / 379.1 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004104/0.05248, allocations: 55.97 kB / 379.2 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.146e-05/0.05253, allocations: 51.98 kB / 379.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005007/0.05303, allocations: 313.4 kB / 379.5 MB, free: 0.582 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005176/0.05355, allocations: 0.7687 MB / 380.3 MB, free: 15.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000734/0.05428, allocations: 0.8039 MB / 381.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.436e-06/0.05429, allocations: 0 / 381.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.001062/0.05535, allocations: 0.9688 MB / 382.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.05537, allocations: 9.25 kB / 382.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.05537, allocations: 12 kB / 382.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.05538, allocations: 12 kB / 382.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005044/0.05589, allocations: 260.2 kB / 382.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.0559, allocations: 27.92 kB / 382.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003778/0.05628, allocations: 59.97 kB / 382.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.664e-05/0.05632, allocations: 48 kB / 382.5 MB, free: 13.22 MB / 314.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,track.nextTimeEventScaled,$PRE.track.nextTimeEventScaled,track.nextTimeEvent,dcpmDrive.limitedPI.integrator.local_reset,dcpmDrive.battery.soc.local_reset,dcpmDrive.dcdcConverter.EBat.local_reset,dcpmDrive.dcdcConverter.integralController.local_reset,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 (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.0002146/0.05654, allocations: 353.7 kB / 382.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.05669, allocations: 206.8 kB / 383 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009296/0.05762, allocations: 0.7263 MB / 383.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.05763, allocations: 16 kB / 383.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.05764, allocations: 3.938 kB / 383.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.05764, allocations: 7.969 kB / 383.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.05998, allocations: 2.12 MB / 385.9 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.05998, allocations: 4 kB / 385.9 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005062/0.06049, allocations: 207.8 kB / 386.1 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.0605, allocations: 8 kB / 386.1 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/0.06054, allocations: 27.98 kB / 386.2 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.06055, allocations: 11.94 kB / 386.2 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.06055, allocations: 0 / 386.2 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.06175, allocations: 1.129 MB / 387.3 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003336/0.06208, allocations: 270.7 kB / 387.6 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.914e-05/0.06218, allocations: 24 kB / 387.6 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.06248, allocations: 59.91 kB / 387.6 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.06257, allocations: 64.88 kB / 387.7 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.06261, allocations: 27.98 kB / 387.7 MB, free: 7.867 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007352/0.06334, allocations: 0.8605 MB / 388.6 MB, free: 7.012 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06334, allocations: 0 / 388.6 MB, free: 7.012 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009978/0.06434, allocations: 0.5078 MB / 389.1 MB, free: 6.504 MB / 314.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.0009139/0.06526, allocations: 432.5 kB / 389.5 MB, free: 6.219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.06658, allocations: 1.003 MB / 390.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.06658, allocations: 0 / 390.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.06692, allocations: 315.2 kB / 390.8 MB, free: 4.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008675/0.06779, allocations: 342.7 kB / 391.2 MB, free: 4.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004156/0.07195, allocations: 3.29 MB / 394.5 MB, free: 1.234 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.07218, allocations: 336.1 kB / 394.8 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005769/0.07275, allocations: 206.7 kB / 395 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.07295, allocations: 104.5 kB / 395.1 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of SimCode: time 2.114e-06/0.07295, allocations: 0 / 395.1 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of Templates: time 0.1342/0.2072, allocations: 17.34 MB / 412.4 MB, free: 80.98 MB / 330.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.500630292110145]