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.001029/0.001029, allocations: 92.22 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.001129/0.001129, allocations: 173 kB / 23.02 MB, free: 1.547 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.9408/0.9408, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.005287/0.005287, allocations: 1.311 MB / 261.3 MB, free: 11.74 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.563e-06/1.563e-06, allocations: 0 / 331.3 MB, free: 18.13 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.197e-05/2.353e-05, allocations: 4.562 kB / 331.3 MB, free: 18.13 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.006643/0.006666, allocations: 8.709 MB / 340 MB, free: 9.371 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005144/0.01181, allocations: 4.21 MB / 344.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.01303, allocations: 59.56 kB / 344.2 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.01446, allocations: 0.6474 MB / 344.9 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001619/0.01608, allocations: 0.6202 MB / 345.5 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.01743, allocations: 0.936 MB / 346.5 MB, free: 2.871 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001861/0.01929, allocations: 2.537 MB / 349 MB, free: 332 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007965/0.02008, allocations: 0.6582 MB / 349.6 MB, free: 15.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.02165, allocations: 1.38 MB / 351 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007272/0.02238, allocations: 0.6892 MB / 351.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002355/0.02261, allocations: 252 kB / 352 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003698/0.02298, allocations: 307.9 kB / 352.3 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003153/0.0233, allocations: 0.5878 MB / 352.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005523/0.02385, allocations: 0.7168 MB / 353.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.02547, allocations: 1.74 MB / 355.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.02547, allocations: 0 / 355.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02548, allocations: 0 / 355.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.575e-05/0.0255, 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.002555/0.02806, allocations: 2.609 MB / 357.9 MB, free: 7.266 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.02809, allocations: 8.031 kB / 357.9 MB, free: 7.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004378/0.02853, allocations: 395.2 kB / 358.3 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.02978, allocations: 1.307 MB / 359.6 MB, free: 5.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.961e-05/0.02985, allocations: 119.5 kB / 359.7 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.03003, allocations: 176.5 kB / 359.9 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.03165, allocations: 1.523 MB / 361.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/0.03169, allocations: 7.953 kB / 361.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.68e-05/0.03178, allocations: 72 kB / 361.5 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.498e-05/0.0318, allocations: 36 kB / 361.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.03284, allocations: 0.5873 MB / 362.1 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006262/0.03911, allocations: 6.184 MB / 368.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008877/0.03999, allocations: 0.5954 MB / 368.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.04031, allocations: 221.1 kB / 369.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.324e-05/0.04036, allocations: 17 kB / 369.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005012/0.04086, allocations: 0.5176 MB / 369.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=94): time 1.713e-06/0.04086, allocations: 0 / 369.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.003659/0.04452, allocations: 2.518 MB / 372.2 MB, free: 8.461 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.0446, allocations: 222.6 kB / 372.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.04586, allocations: 1.449 MB / 373.9 MB, free: 6.723 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.04591, allocations: 45.7 kB / 373.9 MB, free: 6.672 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008257/0.04674, allocations: 1.039 MB / 374.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.04694, allocations: 388.7 kB / 375.3 MB, free: 5.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/0.04715, allocations: 220.6 kB / 375.5 MB, free: 5.008 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.04727, allocations: 0.516 MB / 376 MB, free: 4.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.04756, allocations: 180.8 kB / 376.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005189/0.04808, allocations: 0.7882 MB / 377 MB, free: 3.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/0.04885, allocations: 0.8078 MB / 377.8 MB, free: 2.312 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.04885, allocations: 4 kB / 377.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.001131/0.04998, allocations: 0.9845 MB / 378.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.05, allocations: 8 kB / 378.8 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.05001, allocations: 8 kB / 378.8 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.05003, allocations: 19.98 kB / 378.8 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005958/0.05063, allocations: 279.6 kB / 379.1 MB, free: 1.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.05064, allocations: 23.92 kB / 379.1 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.05105, allocations: 64.28 kB / 379.2 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.0511, allocations: 44 kB / 379.2 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004921/0.0516, allocations: 317.5 kB / 379.6 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000505/0.0521, allocations: 0.7687 MB / 380.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009892/0.05309, allocations: 0.8039 MB / 381.1 MB, free: 14.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.809e-06/0.05309, allocations: 4 kB / 381.1 MB, free: 14.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.00102/0.05411, allocations: 0.9572 MB / 382.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.05413, allocations: 8 kB / 382.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.05413, allocations: 8 kB / 382.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.05414, allocations: 16 kB / 382.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005123/0.05465, allocations: 267.6 kB / 382.4 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.05467, allocations: 19.94 kB / 382.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.05502, allocations: 64.28 kB / 382.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.05507, allocations: 48 kB / 382.5 MB, free: 13.21 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.0001979/0.05526, allocations: 349.7 kB / 382.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.05544, allocations: 210.8 kB / 383.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009224/0.05636, allocations: 0.7224 MB / 383.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.05636, allocations: 12 kB / 383.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.05637, allocations: 3.938 kB / 383.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.05638, allocations: 7.984 kB / 383.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002382/0.05876, allocations: 2.132 MB / 385.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.05876, allocations: 128 / 385.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005156/0.05928, allocations: 211.7 kB / 386.1 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.05928, allocations: 4 kB / 386.1 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.733e-05/0.05933, allocations: 28.09 kB / 386.2 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.05934, allocations: 7.938 kB / 386.2 MB, free: 9.465 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.05934, allocations: 4 kB / 386.2 MB, free: 9.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.06053, allocations: 1.129 MB / 387.3 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003386/0.06087, allocations: 274.7 kB / 387.6 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.061, allocations: 27.98 kB / 387.6 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.0613, allocations: 59.91 kB / 387.7 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.43e-05/0.0614, allocations: 60.88 kB / 387.7 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-05/0.06144, allocations: 35.98 kB / 387.8 MB, free: 7.848 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001058/0.0625, allocations: 0.8527 MB / 388.6 MB, free: 7 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.0625, allocations: 0 / 388.6 MB, free: 7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00116/0.06366, allocations: 0.5117 MB / 389.1 MB, free: 6.488 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.0009893/0.06465, allocations: 423.6 kB / 389.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.0661, allocations: 0.999 MB / 390.5 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.06611, allocations: 4.375 kB / 390.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.06646, allocations: 315.2 kB / 390.8 MB, free: 4.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008644/0.06732, allocations: 346.7 kB / 391.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.07148, allocations: 3.282 MB / 394.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.07171, allocations: 336.1 kB / 394.8 MB, free: 0.875 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005782/0.07229, allocations: 210.7 kB / 395 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.0725, allocations: 100.5 kB / 395.1 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.0725, allocations: 0 / 395.1 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of Templates: time 0.1306/0.2031, allocations: 17.35 MB / 412.5 MB, free: 73.96 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.467921434901655]