Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 52 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3197, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007887/0.3277, allocations: 5.793 MB / 406.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.3326, allocations: 2.586 MB / 409.1 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.3338, allocations: 23.94 kB / 409.1 MB, free: 476 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.3358, allocations: 0.766 MB / 409.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001479/0.3373, allocations: 0.5088 MB / 410.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.3387, allocations: 0.5136 MB / 410.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002285/0.341, allocations: 1.582 MB / 412.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008048/0.3419, allocations: 0.5922 MB / 413.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008049/0.3427, allocations: 0.619 MB / 413.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001132/0.3438, allocations: 0.7393 MB / 414.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.344, allocations: 132 kB / 414.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004891/0.3445, allocations: 212 kB / 414.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005663/0.3451, allocations: 0.6426 MB / 415.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008352/0.3459, allocations: 0.9166 MB / 416.3 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002534/0.3485, allocations: 2.476 MB / 418.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3485, allocations: 0 / 418.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3485, allocations: 0 / 418.8 MB, free: 6.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.538e-05/0.3486, allocations: 7.938 kB / 418.8 MB, free: 6.707 MB / 334.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.006089/0.3547, allocations: 2.559 MB / 421.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3547, allocations: 16.03 kB / 421.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003585/0.3551, allocations: 222.2 kB / 421.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002662/0.3578, allocations: 1.535 MB / 423.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.3579, allocations: 100.3 kB / 423.2 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3581, allocations: 91.84 kB / 423.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.36, allocations: 1.096 MB / 424.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.36, allocations: 0 / 424.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-05/0.3601, allocations: 40 kB / 424.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.3601, allocations: 20 kB / 424.5 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.3615, allocations: 0.7182 MB / 425.2 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006935/0.3684, allocations: 4.598 MB / 429.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.3698, allocations: 0.9427 MB / 430.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007496/0.3706, allocations: 382 kB / 431.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.288e-05/0.3707, allocations: 15.92 kB / 431.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.3707, allocations: 42.56 kB / 431.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.104e-06/0.3707, allocations: 0 / 431.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001748/0.3725, allocations: 0.816 MB / 432 MB, free: 9.039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002112/0.3727, allocations: 423.2 kB / 432.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003603/0.3763, allocations: 2.743 MB / 435.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.3764, allocations: 41.7 kB / 435.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007506/0.3772, allocations: 0.8784 MB / 436.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.3773, allocations: 157.7 kB / 436.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.3776, allocations: 122.2 kB / 436.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.3777, allocations: 326 kB / 436.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.3782, allocations: 261.1 kB / 436.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007483/0.379, allocations: 0.5324 MB / 437.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.38, allocations: 0.6172 MB / 438.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.38, allocations: 0 / 438.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001743/0.3818, allocations: 0.857 MB / 438.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.3818, allocations: 8 kB / 438.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3818, allocations: 4 kB / 438.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.3819, allocations: 8 kB / 438.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006132/0.3825, allocations: 155.8 kB / 439.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.46e-05/0.3825, allocations: 15.88 kB / 439.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.3837, allocations: 159.4 kB / 439.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.538e-05/0.3838, allocations: 31.98 kB / 439.3 MB, free: 1.355 MB / 350.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.001062/0.3849, allocations: 0.5599 MB / 439.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003886/0.3853, allocations: 173.8 kB / 440 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.387, allocations: 0.7 MB / 440.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.387, allocations: 4 kB / 440.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.387, allocations: 7.875 kB / 440.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.387, allocations: 3.984 kB / 440.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.3911, allocations: 2.117 MB / 442.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3911, allocations: 0 / 442.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005147/0.3916, allocations: 108 kB / 443 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.3916, allocations: 7.938 kB / 443 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.3917, allocations: 15.98 kB / 443 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.3917, allocations: 4 kB / 443 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3917, allocations: 0 / 443 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.3938, allocations: 1.047 MB / 444 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000844/0.3946, allocations: 410.6 kB / 444.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003259/0.3949, allocations: 16 kB / 444.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.3962, allocations: 135.8 kB / 444.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003601/0.3966, allocations: 155.8 kB / 444.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.449e-05/0.3966, allocations: 19.94 kB / 444.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003454/0.4001, allocations: 1.951 MB / 446.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4001, allocations: 0 / 446.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001251/0.4014, allocations: 307.3 kB / 447 MB, free: 9.477 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.001273/0.4027, allocations: 492.4 kB / 447.5 MB, free: 9.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.4042, allocations: 0.5919 MB / 448.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.4042, allocations: 1.062 kB / 448.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007051/0.4049, allocations: 343.9 kB / 448.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.4066, allocations: 310.2 kB / 448.7 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006908/0.4136, allocations: 3.469 MB / 452.2 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.415, allocations: 1.437 MB / 453.6 MB, free: 2.961 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001068/0.4161, allocations: 290.8 kB / 453.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.4166, allocations: 103.4 kB / 454 MB, free: 2.57 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4166, allocations: 4 kB / 454 MB, free: 2.566 MB / 366.1 MB Notification: Performance of Templates: time 0.04483/0.4614, allocations: 21.39 MB / 475.4 MB, free: 13.36 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches