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.00103/0.00103, allocations: 93.06 kB / 19.65 MB, free: 272 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.001139/0.001139, allocations: 169 kB / 23.02 MB, free: 1.543 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.9355/0.9355, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.005636/0.005636, allocations: 1.323 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.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.543e-06/1.543e-06, allocations: 0 / 331.3 MB, free: 18.12 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.719e-05/1.874e-05, allocations: 4.844 kB / 331.3 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.002364/0.002383, allocations: 2.656 MB / 333.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008054/0.003188, allocations: 0.631 MB / 334.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.00332, allocations: 4 kB / 334.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.003472, allocations: 51.5 kB / 334.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.003579, allocations: 75.3 kB / 334.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.003777, allocations: 91.89 kB / 334.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.003996, allocations: 318.7 kB / 335.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.004179, allocations: 119.6 kB / 335.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.004307, allocations: 183.7 kB / 335.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.004445, allocations: 107.7 kB / 335.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.004477, allocations: 32 kB / 335.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.597e-05/0.004503, allocations: 36 kB / 335.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.516e-05/0.004538, allocations: 71.75 kB / 335.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.753e-05/0.004596, allocations: 107.7 kB / 335.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.004789, allocations: 223.2 kB / 335.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.004791, allocations: 0 / 335.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.004791, allocations: 0 / 335.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.004796, allocations: 0 / 335.9 MB, free: 13.41 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.000535/0.005331, allocations: 0.6053 MB / 336.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.005364, allocations: 12.03 kB / 336.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.005429, allocations: 56.75 kB / 336.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.005627, allocations: 216.1 kB / 336.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/0.00569, allocations: 76.62 kB / 336.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.005721, allocations: 32.31 kB / 336.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.006051, allocations: 352.1 kB / 337.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.006066, allocations: 192 / 337.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.006085, allocations: 20.12 kB / 337.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.006093, allocations: 8 kB / 337.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.006221, allocations: 100.5 kB / 337.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008051/0.007026, allocations: 1.375 MB / 338.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.007249, allocations: 127 kB / 338.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.632e-05/0.007285, allocations: 27.69 kB / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.007298, allocations: 0 / 338.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.548e-05/0.007314, allocations: 37.39 kB / 339 MB, free: 10.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.01e-07/0.007315, allocations: 0 / 339 MB, free: 10.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000404/0.007719, allocations: 189.2 kB / 339.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.687e-05/0.007736, allocations: 59.34 kB / 339.2 MB, free: 9.898 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.706e-05/0.007833, allocations: 249.2 kB / 339.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.639e-06/0.007842, allocations: 29.7 kB / 339.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.007899, allocations: 230.8 kB / 339.7 MB, free: 9.375 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.007917, allocations: 35.69 kB / 339.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.007957, allocations: 47.36 kB / 339.8 MB, free: 9.285 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.658e-05/0.008003, allocations: 0.4923 MB / 340.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.191e-05/0.008045, allocations: 27.98 kB / 340.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.767e-05/0.008103, allocations: 119.8 kB / 340.4 MB, free: 8.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.987e-05/0.008203, allocations: 144.7 kB / 340.6 MB, free: 8.414 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.008205, allocations: 7.938 kB / 340.6 MB, free: 8.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002223/0.008428, allocations: 201 kB / 340.8 MB, free: 8.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.008439, allocations: 4 kB / 340.8 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.008444, allocations: 8.219 kB / 340.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001415/0.008585, allocations: 39.61 kB / 340.8 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.648e-05/0.008642, allocations: 27.98 kB / 340.8 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000628/0.00927, allocations: 2.043 MB / 342.9 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.498e-05/0.009325, allocations: 23.83 kB / 342.9 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.009333, allocations: 8.062 kB / 342.9 MB, free: 5.918 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 5.893e-05/0.009392, allocations: 172.7 kB / 343.1 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.283e-05/0.009414, allocations: 15.91 kB / 343.1 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.369e-05/0.009428, allocations: 21.45 kB / 343.1 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.51e-07/0.009429, allocations: 0 / 343.1 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.00943, allocations: 0 / 343.1 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.009433, allocations: 0 / 343.1 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.009553, allocations: 220.3 kB / 343.3 MB, free: 5.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.009555, allocations: 4 kB / 343.3 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-05/0.009597, allocations: 8 kB / 343.4 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.378e-05/0.009661, allocations: 31.67 kB / 343.4 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.00967, allocations: 7.984 kB / 343.4 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004992/0.01017, allocations: 2.035 MB / 345.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.01017, allocations: 3.938 kB / 345.4 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.01038, allocations: 307.4 kB / 345.7 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.126e-05/0.01039, allocations: 15.91 kB / 345.7 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.06e-05/0.0104, allocations: 4.078 kB / 345.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.569e-05/0.01046, allocations: 8 kB / 345.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.01049, allocations: 19.91 kB / 345.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.0105, allocations: 3.984 kB / 345.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.103e-05/0.01055, allocations: 171.1 kB / 346 MB, free: 2.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01055, allocations: 4.031 kB / 346 MB, free: 2.691 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.01077, allocations: 71.73 kB / 346 MB, free: 2.621 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 5.286e-05/0.01082, allocations: 91.25 kB / 346.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002471/0.01107, allocations: 268.5 kB / 346.4 MB, free: 2.238 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.01107, allocations: 4 kB / 346.4 MB, free: 2.234 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.01117, allocations: 222 kB / 346.6 MB, free: 1.996 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.01137, allocations: 27.73 kB / 346.6 MB, free: 1.973 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007112/0.01208, allocations: 479.7 kB / 347.1 MB, free: 1.477 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.962e-05/0.01211, allocations: 79.97 kB / 347.2 MB, free: 1.379 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.839e-05/0.01215, allocations: 17.47 kB / 347.2 MB, free: 1.355 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.627e-05/0.01218, allocations: 20.5 kB / 347.2 MB, free: 1.336 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01218, allocations: 0 / 347.2 MB, free: 1.336 MB / 266.7 MB Notification: Performance of Templates: time 0.003742/0.01592, allocations: 2.118 MB / 349.3 MB, free: 15.24 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.81647361908108]