Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.ChargeBattery.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.000778/0.000778, allocations: 93.06 kB / 19.65 MB, free: 280 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.0009737/0.0009737, allocations: 169 kB / 23.02 MB, free: 1.551 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.9685/0.9685, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.005445/0.005445, allocations: 1.316 MB / 261.3 MB, free: 11.73 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.ChargeBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.ChargeBattery") translateModel(BikeTrailer.Examples.ChargeBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.ChargeBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 331.3 MB, free: 18.14 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.022e-05/3.234e-05, allocations: 4.984 kB / 331.3 MB, free: 18.14 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.003004/0.003036, allocations: 2.66 MB / 333.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007742/0.00381, allocations: 0.6349 MB / 334.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.00393, allocations: 8 kB / 334.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.004079, allocations: 47.5 kB / 334.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.553e-05/0.004174, allocations: 67.3 kB / 334.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.004378, allocations: 95.88 kB / 334.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.004599, allocations: 318.8 kB / 335.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.004763, allocations: 119.6 kB / 335.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.004873, allocations: 187.7 kB / 335.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.005002, allocations: 107.7 kB / 335.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.005038, allocations: 32 kB / 335.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.793e-05/0.005066, allocations: 36 kB / 335.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.005102, allocations: 71.75 kB / 335.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.767e-05/0.00516, allocations: 103.7 kB / 335.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.005364, allocations: 223.2 kB / 335.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.005367, allocations: 0 / 335.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.005368, allocations: 3.984 kB / 335.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.005373, allocations: 4 kB / 335.9 MB, free: 13.42 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0004916/0.005865, allocations: 0.6015 MB / 336.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.005901, allocations: 12.03 kB / 336.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.619e-05/0.005967, allocations: 52.75 kB / 336.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.00615, allocations: 216.1 kB / 336.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.006209, allocations: 72.62 kB / 336.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.006239, allocations: 32.31 kB / 336.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.006509, allocations: 352.1 kB / 337.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.006517, allocations: 192 / 337.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.006536, allocations: 16.12 kB / 337.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.078e-06/0.006545, allocations: 12 kB / 337.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.006672, allocations: 99.81 kB / 337.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007621/0.007434, allocations: 1.39 MB / 338.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.007623, allocations: 111.1 kB / 338.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.341e-05/0.007657, allocations: 27.69 kB / 338.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.007666, allocations: 0 / 338.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.102e-05/0.007677, allocations: 41.38 kB / 339 MB, free: 10.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.11e-07/0.007678, allocations: 4 kB / 339 MB, free: 10.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003765/0.008055, allocations: 181.2 kB / 339.1 MB, free: 9.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.606e-05/0.008071, allocations: 51.41 kB / 339.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.008173, allocations: 261.1 kB / 339.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.008182, allocations: 29.7 kB / 339.5 MB, free: 9.621 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.55e-05/0.008237, allocations: 230.8 kB / 339.7 MB, free: 9.391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.008259, allocations: 39.69 kB / 339.7 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.008299, allocations: 43.36 kB / 339.8 MB, free: 9.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.24e-05/0.008341, allocations: 0.4923 MB / 340.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.503e-05/0.008376, allocations: 23.98 kB / 340.3 MB, free: 8.773 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.459e-05/0.008431, allocations: 119.8 kB / 340.4 MB, free: 8.617 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.68e-05/0.008528, allocations: 148.7 kB / 340.6 MB, free: 8.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.00853, allocations: 0 / 340.6 MB, free: 8.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002184/0.008749, allocations: 209 kB / 340.8 MB, free: 8.215 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.008763, allocations: 4.625 kB / 340.8 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.008768, allocations: 4 kB / 340.8 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001438/0.008912, allocations: 39.55 kB / 340.8 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.79e-05/0.00897, allocations: 23.98 kB / 340.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006583/0.009628, allocations: 2.055 MB / 342.9 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.821e-05/0.009686, allocations: 23.77 kB / 342.9 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.009698, allocations: 12 kB / 342.9 MB, free: 5.926 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.soc.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 6.995e-05/0.009768, allocations: 160.6 kB / 343.1 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.009792, allocations: 19.91 kB / 343.1 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.403e-05/0.009806, allocations: 17.45 kB / 343.1 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.009807, allocations: 8.062 kB / 343.1 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.009809, allocations: 0 / 343.1 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.009811, allocations: 0 / 343.1 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.009938, allocations: 212.4 kB / 343.3 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.009939, allocations: 4 kB / 343.3 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/0.009983, allocations: 11.94 kB / 343.4 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-05/0.01005, allocations: 35.66 kB / 343.4 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.01006, allocations: 0 / 343.4 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005565/0.01061, allocations: 2.047 MB / 345.4 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.01061, allocations: 3.938 kB / 345.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/0.01085, allocations: 303.3 kB / 345.7 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.29e-05/0.01087, allocations: 15.89 kB / 345.7 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.01088, allocations: 8.094 kB / 345.8 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.872e-05/0.01094, allocations: 8 kB / 345.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.01098, allocations: 15.91 kB / 345.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.01098, allocations: 4 kB / 345.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.018e-05/0.01104, allocations: 171.1 kB / 346 MB, free: 2.707 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01104, allocations: 0 / 346 MB, free: 2.707 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.0113, allocations: 67.73 kB / 346 MB, free: 2.641 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (battery.soc.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 7.231e-05/0.01137, allocations: 99.23 kB / 346.1 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002713/0.01164, allocations: 268.5 kB / 346.4 MB, free: 2.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01164, allocations: 0 / 346.4 MB, free: 2.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.01175, allocations: 221.5 kB / 346.6 MB, free: 2.012 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002314/0.01198, allocations: 26.86 kB / 346.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008088/0.01279, allocations: 478.7 kB / 347.1 MB, free: 1.492 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.455e-05/0.01282, allocations: 83.91 kB / 347.2 MB, free: 1.391 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.205e-05/0.01286, allocations: 13.48 kB / 347.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.047e-05/0.01289, allocations: 16.5 kB / 347.2 MB, free: 1.355 MB / 266.7 MB Notification: Performance of SimCode: time 9.01e-07/0.01289, allocations: 0 / 347.2 MB, free: 1.355 MB / 266.7 MB Notification: Performance of Templates: time 0.003872/0.01677, allocations: 2.131 MB / 349.3 MB, free: 15.25 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f BikeTrailer_BikeTrailer.Examples.ChargeBattery.makefile [Timeout 660] (rm -f BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.ChargeBattery.sim & ./BikeTrailer_BikeTrailer.Examples.ChargeBattery -abortSlowSimulation -alarm=240 -lv LOG_STATS > BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7480015279725194]