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.0005641/0.0005641, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008485/0.001413, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006417/0.0006417, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008507/0.001492, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.8888/0.8888, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09013/0.9789, allocations: 53.68 MB / 243.4 MB, free: 15.5 MB / 250.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.005146/0.005146, allocations: 1.307 MB / 245.5 MB, free: 13.47 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001868/0.007015, allocations: 0.8583 MB / 246.3 MB, free: 12.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.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 1.704e-06/1.704e-06, allocations: 0 / 247.6 MB, free: 11.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.041e-05/2.211e-05, allocations: 2.312 kB / 247.6 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.002667/0.002689, allocations: 2.703 MB / 250.3 MB, free: 8.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008017/0.003491, allocations: 0.6657 MB / 251 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.003598, allocations: 4 kB / 251 MB, free: 7.949 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.003702, allocations: 47.52 kB / 251 MB, free: 7.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.805e-05/0.0038, allocations: 67.3 kB / 251.1 MB, free: 7.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.003942, allocations: 99.88 kB / 251.2 MB, free: 7.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.004184, allocations: 314.8 kB / 251.5 MB, free: 7.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.004358, allocations: 126.2 kB / 251.6 MB, free: 7.305 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.00454, allocations: 203.6 kB / 251.8 MB, free: 7.105 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.004681, allocations: 111.7 kB / 251.9 MB, free: 6.996 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.00472, allocations: 36 kB / 251.9 MB, free: 6.961 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.115e-05/0.004751, allocations: 32 kB / 252 MB, free: 6.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.00479, allocations: 51.88 kB / 252 MB, free: 6.879 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.995e-05/0.00485, allocations: 87.81 kB / 252.1 MB, free: 6.793 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.00507, allocations: 219.1 kB / 252.3 MB, free: 6.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.238e-05/0.005082, allocations: 0 / 252.3 MB, free: 6.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.005084, allocations: 0 / 252.3 MB, free: 6.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.005092, allocations: 0 / 252.3 MB, free: 6.578 MB / 250.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.0007962/0.005888, allocations: 0.535 MB / 252.9 MB, free: 6.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.00592, allocations: 11.98 kB / 252.9 MB, free: 6.008 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.00598, allocations: 44.91 kB / 252.9 MB, free: 5.965 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.006192, allocations: 178 kB / 253.1 MB, free: 5.766 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.131e-05/0.006253, allocations: 72.62 kB / 253.2 MB, free: 5.684 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.006286, allocations: 32.38 kB / 253.2 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.006543, allocations: 325.9 kB / 253.5 MB, free: 5.289 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.006553, allocations: 192 / 253.5 MB, free: 5.289 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.006571, allocations: 20.12 kB / 253.5 MB, free: 5.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.006578, allocations: 8 kB / 253.5 MB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.375e-05/0.006662, allocations: 68.48 kB / 253.6 MB, free: 5.195 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008639/0.007526, allocations: 1.006 MB / 254.6 MB, free: 4.129 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.00772, allocations: 86.47 kB / 254.7 MB, free: 4.035 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.632e-05/0.007746, allocations: 20.86 kB / 254.7 MB, free: 4.012 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.007761, allocations: 4 kB / 254.7 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.007782, allocations: 30.56 kB / 254.7 MB, free: 3.969 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.007783, allocations: 0 / 254.7 MB, free: 3.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.000354/0.008137, allocations: 162.8 kB / 254.9 MB, free: 3.801 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.27e-05/0.00816, allocations: 51.41 kB / 255 MB, free: 3.738 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.008265, allocations: 191.8 kB / 255.1 MB, free: 3.539 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.008278, allocations: 25.7 kB / 255.2 MB, free: 3.508 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.008357, allocations: 188 kB / 255.3 MB, free: 3.32 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.00838, allocations: 39.67 kB / 255.4 MB, free: 3.281 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.008425, allocations: 41.66 kB / 255.4 MB, free: 3.234 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.899e-05/0.008504, allocations: 330.8 kB / 255.8 MB, free: 2.902 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.425e-05/0.008528, allocations: 15.94 kB / 255.8 MB, free: 2.887 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.174e-05/0.00858, allocations: 88.44 kB / 255.9 MB, free: 2.77 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.703e-05/0.008677, allocations: 128.3 kB / 256 MB, free: 2.613 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.008679, allocations: 0 / 256 MB, free: 2.613 MB / 250.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002003/0.008879, allocations: 158.4 kB / 256.1 MB, free: 2.449 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.008893, allocations: 8 kB / 256.1 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.008898, allocations: 0 / 256.1 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001114/0.00901, allocations: 28.84 kB / 256.2 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.581e-05/0.009075, allocations: 35.92 kB / 256.2 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000714/0.009789, allocations: 1.379 MB / 257.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.186e-05/0.009851, allocations: 23.83 kB / 257.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.00986, allocations: 12 kB / 257.6 MB, free: 0.8789 MB / 250.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 (battery.soc.local_reset,energy.local_reset,cccvCharger.CV) * 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 7.179e-05/0.009932, allocations: 121.7 kB / 257.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.965e-05/0.009952, allocations: 15.92 kB / 257.8 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.569e-05/0.009968, allocations: 17.47 kB / 257.8 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.00997, allocations: 4 kB / 257.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.009971, allocations: 0 / 257.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.009975, allocations: 8.047 kB / 257.8 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.01011, allocations: 125.8 kB / 257.9 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.01011, allocations: 4 kB / 257.9 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.373e-05/0.01015, allocations: 11.94 kB / 257.9 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.536e-05/0.01017, allocations: 23.83 kB / 257.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.156e-05/0.01023, allocations: 24.84 kB / 258 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.01024, allocations: 4 kB / 258 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006154/0.01086, allocations: 1.379 MB / 259.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.01086, allocations: 0 / 259.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.01123, allocations: 228.2 kB / 259.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.01124, allocations: 4 kB / 259.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.486e-05/0.01129, allocations: 12.08 kB / 259.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.01132, allocations: 11.98 kB / 259.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.01133, allocations: 4 kB / 259.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.855e-05/0.01137, allocations: 53.84 kB / 259.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01137, allocations: 0 / 259.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002247/0.01159, allocations: 67.83 kB / 259.7 MB, free: 14.64 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.49e-05/0.01167, allocations: 72.42 kB / 259.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002157/0.01188, allocations: 206.6 kB / 260 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.01189, allocations: 4 kB / 260 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.01201, allocations: 163.4 kB / 260.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.01223, allocations: 166.7 kB / 260.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.01381, allocations: 454.6 kB / 260.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.651e-05/0.01386, allocations: 95.62 kB / 260.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.524e-05/0.0139, allocations: 21.41 kB / 260.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.545e-05/0.01398, allocations: 75.36 kB / 261 MB, free: 13.3 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01398, allocations: 0 / 261 MB, free: 13.3 MB / 266.7 MB Notification: Performance of Templates: time 0.009823/0.0238, allocations: 2.202 MB / 263.2 MB, free: 11.12 MB / 266.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.447964783757925]