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.001181/0.001181, allocations: 114.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 55.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2269, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007266/0.2342, allocations: 5.844 MB / 415.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004917/0.2391, allocations: 2.727 MB / 418.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00074/0.2399, allocations: 31.88 kB / 418.5 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.2417, allocations: 0.7674 MB / 419.3 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.2429, allocations: 0.5477 MB / 419.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.2441, allocations: 0.5139 MB / 420.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.2458, allocations: 1.598 MB / 422 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007851/0.2466, allocations: 0.6 MB / 422.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007345/0.2474, allocations: 0.6073 MB / 423.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008157/0.2482, allocations: 0.7471 MB / 423.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001805/0.2484, allocations: 136 kB / 424 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.2488, allocations: 208 kB / 424.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005423/0.2493, allocations: 0.6504 MB / 424.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007772/0.2501, allocations: 0.9204 MB / 425.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002079/0.2522, allocations: 2.492 MB / 428.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2522, allocations: 0 / 428.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2522, allocations: 0 / 428.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.62e-05/0.2523, allocations: 0 / 428.3 MB, free: 15.1 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.004749/0.257, allocations: 2.59 MB / 430.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.2571, allocations: 11.97 kB / 430.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003421/0.2574, allocations: 222.2 kB / 431.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.2599, allocations: 1.551 MB / 432.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.26, allocations: 96.2 kB / 432.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.2601, allocations: 87.94 kB / 432.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.2618, allocations: 1.1 MB / 434 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.2619, allocations: 4 kB / 434 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.6e-05/0.2619, allocations: 36 kB / 434 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.262, allocations: 24 kB / 434 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2633, allocations: 0.7182 MB / 434.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006437/0.2697, allocations: 4.599 MB / 439.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.271, allocations: 0.938 MB / 440.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007252/0.2717, allocations: 378 kB / 440.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.597e-05/0.2718, allocations: 11.98 kB / 440.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.2718, allocations: 46.56 kB / 440.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.424e-06/0.2718, allocations: 0 / 440.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001656/0.2735, allocations: 0.816 MB / 441.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/0.2737, allocations: 427.2 kB / 441.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003393/0.2771, allocations: 2.76 MB / 444.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.2772, allocations: 33.7 kB / 444.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007238/0.2779, allocations: 0.8903 MB / 445.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.278, allocations: 157.7 kB / 445.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.2782, allocations: 126.2 kB / 445.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2783, allocations: 330 kB / 446.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005026/0.2789, allocations: 253.1 kB / 446.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006994/0.2796, allocations: 0.5363 MB / 447 MB, free: 11.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.2806, allocations: 0.6172 MB / 447.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2806, allocations: 0 / 447.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001525/0.2821, allocations: 0.8533 MB / 448.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.2822, allocations: 14.19 kB / 448.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.2822, allocations: 4 kB / 448.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.2822, allocations: 12 kB / 448.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005785/0.2828, allocations: 151.8 kB / 448.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.303e-05/0.2828, allocations: 19.88 kB / 448.7 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009595/0.2838, allocations: 155.2 kB / 448.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.2839, allocations: 27.98 kB / 448.9 MB, free: 9.68 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.0006888/0.2846, allocations: 0.5522 MB / 449.4 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.2848, allocations: 181.8 kB / 449.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.2861, allocations: 0.704 MB / 450.3 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.2862, allocations: 7.984 kB / 450.3 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2862, allocations: 4 kB / 450.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008148/0.287, allocations: 406.6 kB / 450.7 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.2872, allocations: 27.84 kB / 450.7 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.2882, allocations: 135.8 kB / 450.9 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.2885, allocations: 143.8 kB / 451 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00221/0.2907, allocations: 0.8364 MB / 451.8 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001832/0.2926, allocations: 1.153 MB / 453 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005197/0.2931, allocations: 280.5 kB / 453.3 MB, free: 5.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.2957, allocations: 1.971 MB / 455.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of Backend: time 4.11e-07/0.2957, allocations: 0 / 455.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.2986, allocations: 1.048 MB / 456.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of SimCode: time 0.005106/0.3037, allocations: 3.873 MB / 460.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of Templates: time 0.03951/0.3432, allocations: 23.22 MB / 483.4 MB, free: 7.406 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