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.002438/0.002438, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.002846/0.002846, allocations: 169.9 kB / 22.46 MB, free: 2.105 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 1.705/1.705, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 178] 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.01024/0.01024, allocations: 1.31 MB / 260.5 MB, free: 11.95 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.463e-06/1.463e-06, allocations: 0 / 383.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.99e-05/3.136e-05, allocations: 2.281 kB / 383.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.01358/0.01361, allocations: 8.035 MB / 391.7 MB, free: 4.871 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.02474, allocations: 4.07 MB / 395.8 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002306/0.02704, allocations: 59.56 kB / 395.9 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002607/0.02965, allocations: 0.6318 MB / 396.5 MB, free: 92 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003055/0.03271, allocations: 0.6203 MB / 397.1 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003693/0.0364, allocations: 0.9395 MB / 398 MB, free: 14.53 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00525/0.04165, allocations: 2.537 MB / 400.6 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.0432, allocations: 0.6543 MB / 401.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.04583, allocations: 1.368 MB / 402.6 MB, free: 9.902 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.04696, allocations: 0.6541 MB / 403.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003812/0.04734, allocations: 256 kB / 403.5 MB, free: 8.996 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005995/0.04794, allocations: 319.8 kB / 403.8 MB, free: 8.684 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008621/0.0488, allocations: 0.5839 MB / 404.4 MB, free: 8.098 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009749/0.04978, allocations: 0.7168 MB / 405.1 MB, free: 7.379 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003963/0.05374, allocations: 2.96 MB / 408.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.05375, allocations: 0 / 408.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.05375, allocations: 0 / 408.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.58e-05/0.05381, allocations: 0 / 408.1 MB, free: 4.41 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.004896/0.0587, allocations: 2.49 MB / 410.6 MB, free: 1.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.05874, allocations: 11.97 kB / 410.6 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005237/0.05927, allocations: 263.3 kB / 410.8 MB, free: 1.605 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.06169, allocations: 1.335 MB / 412.2 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.06181, allocations: 123.4 kB / 412.3 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1804/0.2422, allocations: 167.9 kB / 412.5 MB, free: 38.92 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003549/0.2457, allocations: 1.903 MB / 414.4 MB, free: 37.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-05/0.2458, allocations: 8.969 kB / 414.4 MB, free: 37.97 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.2459, allocations: 67.59 kB / 414.4 MB, free: 37.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.651e-05/0.2459, allocations: 39.16 kB / 414.5 MB, free: 37.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002455/0.2484, allocations: 1.198 MB / 415.7 MB, free: 37.49 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009899/0.2583, allocations: 5.681 MB / 421.4 MB, free: 33.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.2602, allocations: 0.8694 MB / 422.2 MB, free: 33.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/0.261, allocations: 414.5 kB / 422.6 MB, free: 33.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.258e-05/0.2611, allocations: 16.64 kB / 422.6 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.2622, allocations: 0.7078 MB / 423.4 MB, free: 33.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=95): time 2.955e-06/0.2622, allocations: 0 / 423.4 MB, free: 33.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.008587/0.2708, allocations: 3.684 MB / 427 MB, free: 31.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.2708, allocations: 223.5 kB / 427.3 MB, free: 31.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.2733, allocations: 1.719 MB / 429 MB, free: 30.47 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.2734, allocations: 49.56 kB / 429 MB, free: 30.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006067/0.274, allocations: 0.9561 MB / 430 MB, free: 29.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002283/0.2742, allocations: 378.8 kB / 430.4 MB, free: 29.51 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.2745, allocations: 216.2 kB / 430.6 MB, free: 29.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.355e-05/0.2746, allocations: 356.9 kB / 430.9 MB, free: 29.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007857/0.2754, allocations: 422.4 kB / 431.3 MB, free: 28.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.2766, allocations: 0.8915 MB / 432.2 MB, free: 28.14 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/0.2787, allocations: 1.156 MB / 433.4 MB, free: 27.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-06/0.2787, allocations: 0 / 433.4 MB, free: 27.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002405/0.2811, allocations: 1.379 MB / 434.8 MB, free: 26.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.2811, allocations: 12.53 kB / 434.8 MB, free: 26.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.2812, allocations: 8.312 kB / 434.8 MB, free: 26.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.643e-05/0.2812, allocations: 14.28 kB / 434.8 MB, free: 26.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.2822, allocations: 289 kB / 435.1 MB, free: 26.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.075e-05/0.2822, allocations: 20.88 kB / 435.1 MB, free: 26.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008495/0.2831, allocations: 71.44 kB / 435.2 MB, free: 26.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.388e-05/0.2831, allocations: 48 kB / 435.2 MB, free: 26.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001114/0.2842, allocations: 0.7329 MB / 435.9 MB, free: 25.58 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000654/0.2849, allocations: 0.8252 MB / 436.8 MB, free: 24.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00111/0.286, allocations: 1.045 MB / 437.8 MB, free: 23.44 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.378e-06/0.286, allocations: 4 kB / 437.8 MB, free: 23.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.00166/0.2877, allocations: 1.25 MB / 439.1 MB, free: 22.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2877, allocations: 8 kB / 439.1 MB, free: 22.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2877, allocations: 8 kB / 439.1 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2877, allocations: 16 kB / 439.1 MB, free: 22.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008551/0.2886, allocations: 269 kB / 439.4 MB, free: 21.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.2886, allocations: 19.92 kB / 439.4 MB, free: 21.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007441/0.2893, allocations: 60.05 kB / 439.4 MB, free: 21.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.2894, allocations: 51.98 kB / 439.5 MB, free: 21.76 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (154): * Single equations (assignments): 154 * 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.0002698/0.2896, allocations: 263.2 kB / 439.7 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001832/0.2898, allocations: 178.8 kB / 439.9 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.2917, allocations: 1.125 MB / 441 MB, free: 20.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.2917, allocations: 8 kB / 441.1 MB, free: 20.17 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2917, allocations: 0 / 441.1 MB, free: 20.17 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.2917, allocations: 10.19 kB / 441.1 MB, free: 20.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.2954, allocations: 2.492 MB / 443.6 MB, free: 17.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.2954, allocations: 0 / 443.6 MB, free: 17.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009269/0.2964, allocations: 227.8 kB / 443.8 MB, free: 17.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.916e-06/0.2964, allocations: 4 kB / 443.8 MB, free: 17.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-05/0.2964, allocations: 27.98 kB / 443.8 MB, free: 17.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.064e-06/0.2964, allocations: 7.938 kB / 443.8 MB, free: 17.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2965, allocations: 0 / 443.8 MB, free: 17.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.2989, allocations: 1.728 MB / 445.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005262/0.2994, allocations: 274.7 kB / 445.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.2996, allocations: 28 kB / 445.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/0.3002, allocations: 56.08 kB / 445.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.3003, allocations: 68.88 kB / 446 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.406e-05/0.3003, allocations: 31.98 kB / 446 MB, free: 15.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001165/0.3015, allocations: 1.177 MB / 447.2 MB, free: 14.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3015, allocations: 0 / 447.2 MB, free: 14.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001372/0.3029, allocations: 0.5117 MB / 447.7 MB, free: 13.5 MB / 330.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 (108): * Single equations (assignments): 106 * 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.002768/0.3056, allocations: 483 kB / 448.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.3081, allocations: 1.505 MB / 449.7 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3081, allocations: 4 kB / 449.7 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007369/0.3088, allocations: 477.5 kB / 450.1 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.3103, allocations: 327.3 kB / 450.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00491/0.3152, allocations: 3.584 MB / 454 MB, free: 7.344 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006458/0.3159, allocations: 0.8179 MB / 454.8 MB, free: 6.492 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008774/0.3168, allocations: 234.7 kB / 455.1 MB, free: 6.258 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.317, allocations: 100.5 kB / 455.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.317, allocations: 0 / 455.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of Templates: time 0.03976/0.3568, allocations: 16.46 MB / 471.6 MB, free: 5.926 MB / 346.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: 7.835776562336832]