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.0008782/0.0008782, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001436/0.001436, allocations: 169 kB / 24.06 MB, free: 456 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.9812/0.9812, allocations: 177.1 MB / 204.5 MB, free: 5.516 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.01317/0.01317, allocations: 1.319 MB / 262.4 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.303e-06/1.303e-06, allocations: 0 / 332.5 MB, free: 2.918 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.395e-05, allocations: 2.312 kB / 332.5 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.008405/0.008429, allocations: 8.541 MB / 341 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007154/0.01558, allocations: 4.194 MB / 345.2 MB, free: 6.109 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002064/0.01765, allocations: 63.56 kB / 345.3 MB, free: 6.047 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002038/0.01969, allocations: 0.6434 MB / 345.9 MB, free: 5.398 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002114/0.0218, allocations: 0.6203 MB / 346.6 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.02379, allocations: 0.9321 MB / 347.5 MB, free: 3.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00264/0.02643, allocations: 2.533 MB / 350 MB, free: 1.297 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009442/0.02737, allocations: 0.6543 MB / 350.7 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.02906, allocations: 1.384 MB / 352.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008387/0.0299, allocations: 0.6775 MB / 352.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000294/0.03019, allocations: 256 kB / 353 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003951/0.03058, allocations: 315.8 kB / 353.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003272/0.03091, allocations: 0.5917 MB / 353.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008762/0.03179, allocations: 0.7129 MB / 354.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00185/0.03364, allocations: 1.744 MB / 356.3 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.03364, allocations: 0 / 356.3 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.03364, allocations: 4 kB / 356.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.252e-05/0.03368, allocations: 0 / 356.3 MB, free: 10.9 MB / 330.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.002779/0.03645, allocations: 2.624 MB / 359 MB, free: 8.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.03649, allocations: 12.03 kB / 359 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004554/0.03695, allocations: 395.2 kB / 359.4 MB, free: 7.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.03824, allocations: 1.276 MB / 360.6 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.336e-05/0.03831, allocations: 119.5 kB / 360.8 MB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.03851, allocations: 180.5 kB / 360.9 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.04023, allocations: 1.417 MB / 362.4 MB, free: 4.633 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.04027, allocations: 11.95 kB / 362.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-05/0.04035, allocations: 75.98 kB / 362.4 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.04037, allocations: 36 kB / 362.5 MB, free: 4.512 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005828/0.04095, allocations: 476.4 kB / 362.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.04649, allocations: 5.905 MB / 368.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007658/0.04725, allocations: 0.5446 MB / 369.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.04749, allocations: 188 kB / 369.6 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.04754, allocations: 20.98 kB / 369.6 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004052/0.04794, allocations: 497.9 kB / 370.1 MB, free: 12.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=94): time 2.836e-06/0.04795, allocations: 4 kB / 370.1 MB, free: 12.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=103): time 0.003/0.05095, allocations: 2.043 MB / 372.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.252e-05/0.05104, allocations: 222.6 kB / 372.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.05221, allocations: 1.401 MB / 373.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.609e-05/0.05227, allocations: 49.64 kB / 373.8 MB, free: 8.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005887/0.05286, allocations: 1.066 MB / 374.9 MB, free: 7.711 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.05307, allocations: 392.6 kB / 375.2 MB, free: 7.324 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/0.05328, allocations: 224.4 kB / 375.5 MB, free: 7.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003818/0.05367, allocations: 0.5276 MB / 376 MB, free: 6.559 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.05386, allocations: 144.8 kB / 376.1 MB, free: 6.414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.05429, allocations: 0.7452 MB / 376.9 MB, free: 5.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006132/0.0549, allocations: 0.7491 MB / 377.6 MB, free: 4.527 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.05491, allocations: 4 kB / 377.6 MB, free: 4.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.0009316/0.05584, allocations: 0.8945 MB / 378.5 MB, free: 3.625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.05586, allocations: 8 kB / 378.5 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.05587, allocations: 12 kB / 378.5 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.05589, allocations: 12 kB / 378.6 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005903/0.05648, allocations: 288.1 kB / 378.8 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.05649, allocations: 19.92 kB / 378.9 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003857/0.05688, allocations: 59.97 kB / 378.9 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.413e-05/0.05692, allocations: 40 kB / 379 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003901/0.05731, allocations: 277.4 kB / 379.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004066/0.05772, allocations: 0.7295 MB / 380 MB, free: 1.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005656/0.05828, allocations: 0.7374 MB / 380.7 MB, free: 1.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.887e-06/0.05829, allocations: 3.938 kB / 380.7 MB, free: 1.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.0008149/0.0591, allocations: 0.8751 MB / 381.6 MB, free: 176 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.05912, allocations: 11.94 kB / 381.6 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.05912, allocations: 11.94 kB / 381.6 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.05914, allocations: 19.98 kB / 381.6 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.05963, allocations: 260.2 kB / 381.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/0.05965, allocations: 27.92 kB / 381.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.06, allocations: 55.98 kB / 382 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.06004, allocations: 40 kB / 382 MB, free: 15.75 MB / 362.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.0005037/0.06055, allocations: 349.7 kB / 382.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.06072, allocations: 214.8 kB / 382.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007479/0.06146, allocations: 0.6561 MB / 383.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.06147, allocations: 12 kB / 383.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.06147, allocations: 4 kB / 383.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.06148, allocations: 7.922 kB / 383.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.06368, allocations: 1.806 MB / 385 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.06369, allocations: 0 / 385 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/0.06422, allocations: 207.9 kB / 385.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.06423, allocations: 8 kB / 385.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.283e-05/0.06427, allocations: 27.98 kB / 385.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.06428, allocations: 4 kB / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.06428, allocations: 4 kB / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.06533, allocations: 1.043 MB / 386.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.06566, allocations: 262.8 kB / 386.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.06577, allocations: 24 kB / 386.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/0.06608, allocations: 51.95 kB / 386.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.67e-05/0.06617, allocations: 68.81 kB / 386.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.002e-05/0.06621, allocations: 24 kB / 386.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006387/0.06685, allocations: 0.786 MB / 387.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.06685, allocations: 0 / 387.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001062/0.06791, allocations: 0.5078 MB / 388 MB, free: 9.609 MB / 362.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.0009903/0.0689, allocations: 423.8 kB / 388.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.07007, allocations: 0.8974 MB / 389.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.07008, allocations: 0 / 389.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005755/0.07065, allocations: 287.1 kB / 389.6 MB, free: 8.156 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009243/0.07158, allocations: 341.8 kB / 390 MB, free: 7.836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.07586, allocations: 3.249 MB / 393.2 MB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.07611, allocations: 332.1 kB / 393.5 MB, free: 4.168 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006185/0.07673, allocations: 206.7 kB / 393.7 MB, free: 3.961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000589/0.07732, allocations: 382 kB / 394.1 MB, free: 3.586 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/0.07732, allocations: 0 / 394.1 MB, free: 3.586 MB / 362.7 MB Notification: Performance of Templates: time 0.02725/0.1046, allocations: 18.37 MB / 412.5 MB, free: 1.395 MB / 378.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.525656241923571]