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.0009584/0.0009584, allocations: 77.95 kB / 20.66 MB, free: 3.832 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.0009977/0.0009977, allocations: 169 kB / 24.06 MB, free: 448 kB / 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.9958/0.9958, allocations: 177.1 MB / 204.5 MB, free: 5.484 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.01412/0.01412, allocations: 1.317 MB / 262.4 MB, free: 11.57 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.322e-06/1.322e-06, allocations: 0 / 332.5 MB, free: 2.883 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.115e-05/1.247e-05, allocations: 2.312 kB / 332.5 MB, free: 2.879 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.002568/0.00258, allocations: 2.64 MB / 335.1 MB, free: 220 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008034/0.003384, allocations: 0.6349 MB / 335.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.003504, allocations: 7.938 kB / 335.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.003646, allocations: 47.5 kB / 335.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.003751, allocations: 67.36 kB / 335.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.003928, allocations: 91.89 kB / 336 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.004182, allocations: 326.6 kB / 336.3 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.004353, allocations: 115.6 kB / 336.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.004501, allocations: 195.6 kB / 336.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.004636, allocations: 99.73 kB / 336.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.004673, allocations: 36 kB / 336.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.937e-05/0.004702, allocations: 35.94 kB / 336.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.471e-05/0.004747, allocations: 67.81 kB / 336.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.791e-05/0.004815, allocations: 107.7 kB / 336.9 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.00503, allocations: 223.2 kB / 337.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.005032, allocations: 0 / 337.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.005032, allocations: 4 kB / 337.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.005036, allocations: 0 / 337.2 MB, free: 14.18 MB / 314.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.0005584/0.005595, allocations: 0.6053 MB / 337.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.754e-05/0.005622, allocations: 8.031 kB / 337.8 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.474e-05/0.005687, allocations: 60.69 kB / 337.8 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.005888, allocations: 216.1 kB / 338 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.699e-05/0.005945, allocations: 72.62 kB / 338.1 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/0.005977, allocations: 32.38 kB / 338.1 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002719/0.006249, allocations: 332.1 kB / 338.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.006259, allocations: 4.188 kB / 338.5 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.006277, allocations: 12.12 kB / 338.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.006286, allocations: 12 kB / 338.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.286e-05/0.006378, allocations: 76.47 kB / 338.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009315/0.00731, allocations: 1.352 MB / 339.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.007523, allocations: 107.1 kB / 340 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.942e-05/0.007553, allocations: 23.67 kB / 340.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.007565, allocations: 0 / 340.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.007587, allocations: 41.39 kB / 340.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.007588, allocations: 4 kB / 340.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003677/0.007956, allocations: 177.2 kB / 340.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.23e-05/0.007978, allocations: 51.41 kB / 340.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.008108, allocations: 247.5 kB / 340.6 MB, free: 10.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.008122, allocations: 33.7 kB / 340.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/0.00821, allocations: 242.7 kB / 340.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.008232, allocations: 35.69 kB / 340.9 MB, free: 10.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.008277, allocations: 47.25 kB / 340.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.008384, allocations: 0.5001 MB / 341.4 MB, free: 9.633 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.679e-05/0.00841, allocations: 15.98 kB / 341.4 MB, free: 9.617 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.256e-05/0.008473, allocations: 111.8 kB / 341.5 MB, free: 9.469 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.008577, allocations: 148.7 kB / 341.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.008579, allocations: 0 / 341.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002281/0.008807, allocations: 189.1 kB / 341.9 MB, free: 9.086 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.00882, allocations: 8 kB / 341.9 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.008824, allocations: 0 / 341.9 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000106/0.00893, allocations: 35.66 kB / 341.9 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.929e-05/0.008989, allocations: 31.92 kB / 341.9 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008808/0.00987, allocations: 2.024 MB / 344 MB, free: 6.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.193e-05/0.009932, allocations: 19.89 kB / 344 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.009942, allocations: 8 kB / 344 MB, free: 6.844 MB / 314.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 8.633e-05/0.01003, allocations: 172.4 kB / 344.2 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.01006, allocations: 19.91 kB / 344.2 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.678e-05/0.01007, allocations: 17.45 kB / 344.2 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.01007, allocations: 0 / 344.2 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.01008, allocations: 8.062 kB / 344.2 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.01008, allocations: 0 / 344.2 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.01022, allocations: 173 kB / 344.4 MB, free: 6.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.01022, allocations: 4 kB / 344.4 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.29e-05/0.01027, allocations: 8 kB / 344.4 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-05/0.01034, allocations: 31.67 kB / 344.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.01035, allocations: 3.984 kB / 344.4 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007963/0.01114, allocations: 2.02 MB / 346.4 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01115, allocations: 0 / 346.4 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.01139, allocations: 299.2 kB / 346.7 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.278e-05/0.01141, allocations: 11.91 kB / 346.7 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.01142, allocations: 4 kB / 346.7 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.409e-05/0.01148, allocations: 16.08 kB / 346.8 MB, free: 3.895 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.01152, allocations: 7.984 kB / 346.8 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.01152, allocations: 4 kB / 346.8 MB, free: 3.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.31e-05/0.01158, allocations: 167.1 kB / 346.9 MB, free: 3.719 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01158, allocations: 0 / 346.9 MB, free: 3.719 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002526/0.01184, allocations: 63.78 kB / 347 MB, free: 3.656 MB / 314.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.585e-05/0.01191, allocations: 99.25 kB / 347.1 MB, free: 3.551 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002654/0.01218, allocations: 260.6 kB / 347.4 MB, free: 3.277 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01218, allocations: 0 / 347.4 MB, free: 3.277 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.01231, allocations: 221.3 kB / 347.6 MB, free: 3.039 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.01253, allocations: 27.92 kB / 347.6 MB, free: 3.012 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007269/0.01326, allocations: 471.2 kB / 348.1 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.354e-05/0.0133, allocations: 79.97 kB / 348.1 MB, free: 2.422 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.394e-05/0.01335, allocations: 17.48 kB / 348.2 MB, free: 2.402 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.791e-05/0.01343, allocations: 98.19 kB / 348.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01343, allocations: 0 / 348.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of Templates: time 0.003926/0.01735, allocations: 2.244 MB / 350.5 MB, free: 96 kB / 314.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.8985457560047507]