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.001259/0.001259, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.61/1.61, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2995, allocations: 50.55 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007316/0.3068, allocations: 5.836 MB / 415.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004623/0.3115, allocations: 2.735 MB / 417.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006947/0.3122, allocations: 19.94 kB / 417.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.314, allocations: 0.7713 MB / 418.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.3152, allocations: 0.5555 MB / 419.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.3165, allocations: 0.51 MB / 419.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001806/0.3183, allocations: 1.602 MB / 421.3 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008547/0.3192, allocations: 0.5922 MB / 421.9 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007617/0.3199, allocations: 0.6151 MB / 422.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008345/0.3208, allocations: 0.7432 MB / 423.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.321, allocations: 132 kB / 423.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004486/0.3214, allocations: 208 kB / 423.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005701/0.322, allocations: 0.6582 MB / 424.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000854/0.3229, allocations: 0.9166 MB / 425.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002528/0.3254, allocations: 2.492 MB / 427.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3254, allocations: 0 / 427.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3255, allocations: 0 / 427.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.576e-05/0.3255, allocations: 3.938 kB / 427.6 MB, free: 15.11 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.005213/0.3307, allocations: 2.591 MB / 430.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3308, allocations: 8.031 kB / 430.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.3312, allocations: 222.2 kB / 430.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00245/0.3336, allocations: 1.551 MB / 432 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.3338, allocations: 96.27 kB / 432.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3339, allocations: 87.94 kB / 432.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.3357, allocations: 1.104 MB / 433.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.3357, allocations: 0 / 433.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.395e-05/0.3358, allocations: 40 kB / 433.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.3359, allocations: 20 kB / 433.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.3371, allocations: 0.7221 MB / 434.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006279/0.3434, allocations: 4.599 MB / 438.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.3447, allocations: 0.9336 MB / 439.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007281/0.3454, allocations: 382 kB / 440 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.114e-05/0.3455, allocations: 11.92 kB / 440 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.3455, allocations: 50.56 kB / 440 MB, free: 2.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.234e-06/0.3455, allocations: 0 / 440 MB, free: 2.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001713/0.3472, allocations: 0.8122 MB / 440.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002028/0.3475, allocations: 423.2 kB / 441.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.3507, allocations: 2.76 MB / 444 MB, free: 14.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.3508, allocations: 37.7 kB / 444 MB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007098/0.3515, allocations: 0.8824 MB / 444.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.3517, allocations: 161.7 kB / 445.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.3519, allocations: 130.2 kB / 445.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.352, allocations: 330 kB / 445.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000508/0.3525, allocations: 261.1 kB / 445.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006839/0.3532, allocations: 0.5363 MB / 446.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009804/0.3542, allocations: 0.6094 MB / 446.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3542, allocations: 4 kB / 446.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001579/0.3558, allocations: 0.8489 MB / 447.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3558, allocations: 8.625 kB / 447.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3559, allocations: 8 kB / 447.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.3559, allocations: 8 kB / 447.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.3565, allocations: 163.7 kB / 448 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.3565, allocations: 11.94 kB / 448 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.3576, allocations: 155.2 kB / 448.1 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.321e-05/0.3576, allocations: 28 kB / 448.2 MB, free: 9.688 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.0007851/0.3584, allocations: 0.5599 MB / 448.7 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.3587, allocations: 177.8 kB / 448.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.36, allocations: 0.6963 MB / 449.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.36, allocations: 4 kB / 449.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.36, allocations: 11.81 kB / 449.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3601, allocations: 7.984 kB / 449.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.3633, allocations: 2.117 MB / 451.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3633, allocations: 3.984 kB / 451.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005001/0.3638, allocations: 107.9 kB / 451.8 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.3639, allocations: 8.094 kB / 451.9 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.3639, allocations: 16 kB / 451.9 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.3639, allocations: 4 kB / 451.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3639, allocations: 3.938 kB / 451.9 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.3657, allocations: 1.047 MB / 452.9 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005851/0.3663, allocations: 414.6 kB / 453.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.3665, allocations: 12 kB / 453.3 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.3676, allocations: 139.8 kB / 453.5 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/0.3679, allocations: 155.7 kB / 453.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.3679, allocations: 23.94 kB / 453.6 MB, free: 4.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002488/0.3704, allocations: 1.964 MB / 455.6 MB, free: 2.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3704, allocations: 4 kB / 455.6 MB, free: 2.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008354/0.3712, allocations: 311.3 kB / 455.9 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.001086/0.3723, allocations: 479.3 kB / 456.4 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.3735, allocations: 0.5882 MB / 457 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.3735, allocations: 4 kB / 457 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006007/0.3742, allocations: 344.7 kB / 457.3 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.3754, allocations: 326.8 kB / 457.6 MB, free: 212 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.3807, allocations: 3.477 MB / 461.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/0.3818, allocations: 1.437 MB / 462.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008/0.3826, allocations: 291.1 kB / 462.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.383, allocations: 103.4 kB / 462.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.383, allocations: 0 / 462.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of Templates: time 0.04101/0.424, allocations: 21.4 MB / 484.3 MB, free: 5.586 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/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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches