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.001487/0.001488, allocations: 114.2 kB / 17.07 MB, free: 5.961 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.001658/0.001658, allocations: 198.8 kB / 18 MB, free: 5.051 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 51.94 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3464, allocations: 49.43 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007895/0.3544, allocations: 5.793 MB / 406.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004954/0.3594, allocations: 2.579 MB / 409.1 MB, free: 460 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006941/0.3601, allocations: 27.88 kB / 409.1 MB, free: 432 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.3621, allocations: 0.7699 MB / 409.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.3636, allocations: 0.5166 MB / 410.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.3647, allocations: 0.502 MB / 410.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.3664, allocations: 1.598 MB / 412.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007936/0.3672, allocations: 0.5883 MB / 413.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008014/0.368, allocations: 0.6151 MB / 413.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007837/0.3688, allocations: 0.7393 MB / 414.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.369, allocations: 132 kB / 414.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004135/0.3694, allocations: 219.9 kB / 414.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005549/0.37, allocations: 0.631 MB / 415.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008877/0.3709, allocations: 0.9244 MB / 416.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002497/0.3734, allocations: 2.476 MB / 418.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3734, allocations: 0 / 418.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3734, allocations: 4 kB / 418.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.701e-05/0.3734, allocations: 3.938 kB / 418.8 MB, free: 6.652 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.004854/0.3783, allocations: 2.556 MB / 421.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3784, allocations: 8.031 kB / 421.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003162/0.3787, allocations: 222.2 kB / 421.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002246/0.3809, allocations: 1.542 MB / 423.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.3811, allocations: 100.3 kB / 423.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.3812, allocations: 91.84 kB / 423.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.3829, allocations: 1.104 MB / 424.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.3829, allocations: 0 / 424.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.589e-05/0.383, allocations: 40 kB / 424.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.3831, allocations: 23.94 kB / 424.5 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.3844, allocations: 0.7183 MB / 425.2 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006488/0.3909, allocations: 4.583 MB / 429.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.3922, allocations: 0.947 MB / 430.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007232/0.3929, allocations: 378 kB / 431.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.023e-05/0.393, allocations: 15.92 kB / 431.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.393, allocations: 46.56 kB / 431.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.823e-06/0.393, allocations: 0 / 431.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001701/0.3947, allocations: 0.8199 MB / 432 MB, free: 8.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002394/0.395, allocations: 423.2 kB / 432.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003553/0.3985, allocations: 2.743 MB / 435.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.3986, allocations: 37.7 kB / 435.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007399/0.3994, allocations: 0.8784 MB / 436.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.3995, allocations: 165.7 kB / 436.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.3997, allocations: 118.2 kB / 436.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3999, allocations: 330 kB / 436.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005079/0.4004, allocations: 249.2 kB / 436.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007226/0.4011, allocations: 0.5363 MB / 437.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.4021, allocations: 0.621 MB / 438.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.4022, allocations: 4 kB / 438.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001616/0.4038, allocations: 0.8455 MB / 438.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.4038, allocations: 12.12 kB / 438.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.4038, allocations: 7.984 kB / 438.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.4039, allocations: 12 kB / 439 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.4044, allocations: 151.8 kB / 439.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.4045, allocations: 15.88 kB / 439.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009215/0.4054, allocations: 163.1 kB / 439.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.4055, allocations: 24 kB / 439.3 MB, free: 1.305 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.0007263/0.4062, allocations: 0.5599 MB / 439.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.4064, allocations: 177.8 kB / 440 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.4077, allocations: 0.6962 MB / 440.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.4078, allocations: 7.984 kB / 440.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4078, allocations: 7.938 kB / 440.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.4078, allocations: 0 / 440.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003078/0.4109, allocations: 2.113 MB / 442.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.4109, allocations: 0 / 442.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004784/0.4114, allocations: 108 kB / 443 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.4114, allocations: 11.94 kB / 443 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/0.4114, allocations: 8 kB / 443 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.4115, allocations: 7.938 kB / 443 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.4115, allocations: 0 / 443 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.4132, allocations: 1.047 MB / 444 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006464/0.4139, allocations: 414.6 kB / 444.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.414, allocations: 12 kB / 444.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009378/0.415, allocations: 139.8 kB / 444.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.4153, allocations: 147.8 kB / 444.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.291e-05/0.4154, allocations: 23.92 kB / 444.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00256/0.4179, allocations: 1.947 MB / 446.7 MB, free: 9.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4179, allocations: 4 kB / 446.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009195/0.4189, allocations: 307.3 kB / 447 MB, free: 9.43 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.001151/0.42, allocations: 489.5 kB / 447.5 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.4213, allocations: 0.5882 MB / 448.1 MB, free: 8.535 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.4213, allocations: 4 kB / 448.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006247/0.422, allocations: 340.8 kB / 448.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.4233, allocations: 320.8 kB / 448.7 MB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00548/0.4288, allocations: 3.473 MB / 452.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.4301, allocations: 1.429 MB / 453.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009765/0.4311, allocations: 294.8 kB / 453.9 MB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.4314, allocations: 103.4 kB / 454 MB, free: 2.516 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4314, allocations: 4 kB / 454 MB, free: 2.512 MB / 366.1 MB Notification: Performance of Templates: time 0.0397/0.4711, allocations: 21.38 MB / 475.4 MB, free: 13.32 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