Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 109.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.431/2.431, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2973, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007181/0.3045, allocations: 5.848 MB / 415.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004712/0.3093, allocations: 2.727 MB / 418.5 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007846/0.3101, allocations: 27.88 kB / 418.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.3119, allocations: 0.7713 MB / 419.3 MB, free: 8.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.3133, allocations: 0.5477 MB / 419.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.3146, allocations: 0.5136 MB / 420.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001996/0.3166, allocations: 1.602 MB / 422 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007911/0.3174, allocations: 0.5961 MB / 422.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007453/0.3182, allocations: 0.6112 MB / 423.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000845/0.319, allocations: 0.7393 MB / 423.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.3192, allocations: 140 kB / 424 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003999/0.3196, allocations: 211.9 kB / 424.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005225/0.3202, allocations: 0.6465 MB / 424.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000782/0.321, allocations: 0.9204 MB / 425.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002196/0.3232, allocations: 2.492 MB / 428.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3232, allocations: 0 / 428.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3232, allocations: 0 / 428.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.676e-05/0.3232, allocations: 0 / 428.3 MB, free: 15.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.004971/0.3282, allocations: 2.591 MB / 430.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3283, allocations: 8.031 kB / 430.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003317/0.3286, allocations: 222.2 kB / 431.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.3311, allocations: 1.554 MB / 432.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.3312, allocations: 96.27 kB / 432.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.3314, allocations: 87.94 kB / 432.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.3331, allocations: 1.1 MB / 434 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.3332, allocations: 4 kB / 434 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.971e-05/0.3333, allocations: 40 kB / 434 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.3333, allocations: 20 kB / 434 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.3346, allocations: 0.7182 MB / 434.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00714/0.3418, allocations: 4.599 MB / 439.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.343, allocations: 0.938 MB / 440.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007379/0.3438, allocations: 378 kB / 440.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/0.3439, allocations: 8 kB / 440.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.3439, allocations: 54.55 kB / 440.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.314e-06/0.3439, allocations: 0 / 440.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001874/0.3458, allocations: 0.816 MB / 441.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001648/0.346, allocations: 431.2 kB / 441.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003888/0.3499, allocations: 2.756 MB / 444.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.35, allocations: 37.7 kB / 444.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007206/0.3508, allocations: 0.8824 MB / 445.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.3509, allocations: 165.7 kB / 445.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.3511, allocations: 122.2 kB / 445.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3513, allocations: 330 kB / 446.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005263/0.3518, allocations: 253.1 kB / 446.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007132/0.3525, allocations: 0.5363 MB / 447 MB, free: 11.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.3535, allocations: 0.6172 MB / 447.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3536, allocations: 0 / 447.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001694/0.3553, allocations: 0.8532 MB / 448.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3553, allocations: 12.16 kB / 448.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3553, allocations: 4 kB / 448.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.3553, allocations: 12 kB / 448.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006062/0.3559, allocations: 151.8 kB / 448.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.356, allocations: 19.88 kB / 448.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.3572, allocations: 155.2 kB / 448.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.318e-05/0.3572, allocations: 24 kB / 448.8 MB, free: 9.691 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0007845/0.358, allocations: 0.5583 MB / 449.4 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002749/0.3583, allocations: 181.8 kB / 449.6 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.3597, allocations: 0.7079 MB / 450.3 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.3597, allocations: 8 kB / 450.3 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.3597, allocations: 7.938 kB / 450.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3597, allocations: 0 / 450.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003438/0.3632, allocations: 2.125 MB / 452.4 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3632, allocations: 0 / 452.4 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.3637, allocations: 119.9 kB / 452.5 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3637, allocations: 0 / 452.5 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.3638, allocations: 8 kB / 452.5 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3638, allocations: 4 kB / 452.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3638, allocations: 0 / 452.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.3656, allocations: 1.063 MB / 453.6 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008637/0.3665, allocations: 410.6 kB / 454 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.3666, allocations: 16 kB / 454 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.3677, allocations: 135.8 kB / 454.2 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/0.3681, allocations: 151.8 kB / 454.3 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.351e-05/0.3681, allocations: 23.92 kB / 454.3 MB, free: 4.059 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002511/0.3706, allocations: 1.964 MB / 456.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3706, allocations: 0 / 456.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009409/0.3716, allocations: 311.3 kB / 456.6 MB, free: 1.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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 Backend phase and start with SimCode phase: time 0.001096/0.3727, allocations: 479.5 kB / 457.1 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3739, allocations: 0.5959 MB / 457.7 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3739, allocations: 0 / 457.7 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006261/0.3745, allocations: 344.8 kB / 458 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.376, allocations: 316.7 kB / 458.3 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005433/0.3814, allocations: 3.561 MB / 461.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00098/0.3825, allocations: 1.429 MB / 463.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.383, allocations: 115.4 kB / 463.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.383, allocations: 0 / 463.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of Templates: time 0.04375/0.4267, allocations: 23.45 MB / 486.9 MB, free: 3.648 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches