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.001277/0.001277, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001377/0.001377, allocations: 169 kB / 23.27 MB, free: 1.223 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.8893/0.8893, allocations: 177.2 MB / 203.7 MB, free: 5.512 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.005457/0.005457, allocations: 1.321 MB / 261.6 MB, free: 11.6 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.693e-06/1.693e-06, allocations: 0 / 331.7 MB, free: 17.85 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.726e-05/1.896e-05, allocations: 2.312 kB / 331.7 MB, free: 17.85 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.01765/0.01767, allocations: 8.541 MB / 340.3 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008222/0.02589, allocations: 4.19 MB / 344.4 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003907/0.0298, allocations: 59.56 kB / 344.5 MB, free: 4.992 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.0311, allocations: 0.6474 MB / 345.2 MB, free: 4.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001044/0.03214, allocations: 0.6203 MB / 345.8 MB, free: 3.715 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004123/0.03627, allocations: 0.9321 MB / 346.7 MB, free: 2.781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.03741, allocations: 2.533 MB / 349.2 MB, free: 244 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007072/0.03812, allocations: 0.666 MB / 349.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009484/0.03906, allocations: 1.376 MB / 351.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.03959, allocations: 0.6853 MB / 352 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.03977, allocations: 256 kB / 352.2 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002577/0.04003, allocations: 307.9 kB / 352.5 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002654/0.04029, allocations: 0.5839 MB / 353.1 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004509/0.04075, allocations: 0.7207 MB / 353.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001251/0.042, allocations: 1.747 MB / 355.6 MB, free: 9.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.042, allocations: 0 / 355.6 MB, free: 9.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.042, allocations: 0 / 355.6 MB, free: 9.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.04201, allocations: 4 kB / 355.6 MB, free: 9.836 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.00215/0.04416, allocations: 2.624 MB / 358.2 MB, free: 7.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.597e-05/0.04418, allocations: 8.031 kB / 358.2 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003656/0.04455, allocations: 395.2 kB / 358.6 MB, free: 6.762 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.04559, allocations: 1.272 MB / 359.9 MB, free: 5.453 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.02e-05/0.04565, allocations: 119.5 kB / 360 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.04582, allocations: 180.5 kB / 360.2 MB, free: 5.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.04692, allocations: 1.425 MB / 361.6 MB, free: 3.566 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.04695, allocations: 11.89 kB / 361.6 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.028e-05/0.04702, allocations: 68 kB / 361.7 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.04704, allocations: 36 kB / 361.7 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005399/0.04758, allocations: 480.4 kB / 362.2 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004294/0.05188, allocations: 5.897 MB / 368.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006337/0.05251, allocations: 0.5485 MB / 368.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.05272, allocations: 185.1 kB / 368.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.05275, allocations: 24.98 kB / 368.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/0.0531, allocations: 497.9 kB / 369.3 MB, free: 11.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=94): time 1.523e-06/0.0531, allocations: 3.938 kB / 369.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.002432/0.05554, allocations: 2.043 MB / 371.3 MB, free: 9.473 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.0556, allocations: 226.6 kB / 371.6 MB, free: 9.203 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000904/0.0565, allocations: 1.393 MB / 373 MB, free: 7.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.05655, allocations: 45.7 kB / 373 MB, free: 7.734 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.05705, allocations: 1.066 MB / 374.1 MB, free: 6.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.05723, allocations: 388.6 kB / 374.5 MB, free: 6.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.05743, allocations: 228.4 kB / 374.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.05756, allocations: 0.5237 MB / 375.2 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.05773, allocations: 148.8 kB / 375.3 MB, free: 5.359 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.05812, allocations: 0.7412 MB / 376.1 MB, free: 4.387 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005695/0.05869, allocations: 0.7491 MB / 376.8 MB, free: 3.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.05869, allocations: 4 kB / 376.8 MB, free: 3.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.0007989/0.05949, allocations: 0.891 MB / 377.7 MB, free: 2.574 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.0595, allocations: 8 kB / 377.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.05951, allocations: 12.16 kB / 377.7 MB, free: 2.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.05953, allocations: 16 kB / 377.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/0.06011, allocations: 279.5 kB / 378 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.06012, allocations: 23.92 kB / 378.1 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000306/0.06043, allocations: 63.95 kB / 378.1 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.06047, allocations: 40 kB / 378.2 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003192/0.06079, allocations: 281.4 kB / 378.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003796/0.06117, allocations: 0.7256 MB / 379.2 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005437/0.06171, allocations: 0.7414 MB / 379.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.686e-06/0.06172, allocations: 4 kB / 379.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.0007467/0.06246, allocations: 0.8715 MB / 380.8 MB, free: 15.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.06247, allocations: 16.08 kB / 380.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.06248, allocations: 12 kB / 380.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.216e-06/0.06249, allocations: 16 kB / 380.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.06295, allocations: 259.6 kB / 381.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.06296, allocations: 23.92 kB / 381.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.06325, allocations: 55.98 kB / 381.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.06329, allocations: 43.95 kB / 381.2 MB, free: 14.7 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,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.0001615/0.06345, allocations: 357.7 kB / 381.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.0636, allocations: 210.8 kB / 381.8 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006631/0.06426, allocations: 0.6638 MB / 382.4 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.06427, allocations: 8 kB / 382.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.06427, allocations: 0 / 382.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.06428, allocations: 11.91 kB / 382.4 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/0.06603, allocations: 1.803 MB / 384.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.06603, allocations: 0 / 384.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004577/0.06649, allocations: 203.7 kB / 384.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.06649, allocations: 4 kB / 384.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.06653, allocations: 27.98 kB / 384.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.06653, allocations: 4 kB / 384.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.06653, allocations: 4 kB / 384.5 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009705/0.0675, allocations: 1.043 MB / 385.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/0.06778, allocations: 270.7 kB / 385.8 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.394e-05/0.06786, allocations: 24 kB / 385.8 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.06813, allocations: 47.95 kB / 385.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.06819, allocations: 68.81 kB / 385.9 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.06823, allocations: 24 kB / 385.9 MB, free: 9.848 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005093/0.06874, allocations: 0.7822 MB / 386.7 MB, free: 9.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.06874, allocations: 4 kB / 386.7 MB, free: 9.066 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007594/0.0695, allocations: 0.5078 MB / 387.2 MB, free: 8.559 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.0007391/0.07023, allocations: 427.5 kB / 387.7 MB, free: 8.277 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008388/0.07107, allocations: 0.9035 MB / 388.6 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.07107, allocations: 1.938 kB / 388.6 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002575/0.07133, allocations: 287.1 kB / 388.8 MB, free: 7.094 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000738/0.07207, allocations: 344.6 kB / 389.2 MB, free: 6.773 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.07545, allocations: 3.259 MB / 392.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002047/0.07566, allocations: 332.1 kB / 392.8 MB, free: 3.098 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004174/0.07608, allocations: 194.7 kB / 393 MB, free: 2.902 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005149/0.07659, allocations: 382 kB / 393.3 MB, free: 2.527 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.07659, allocations: 4 kB / 393.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of Templates: time 0.02075/0.09734, allocations: 17.99 MB / 411.3 MB, free: 0.8047 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.900788228027523]