Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 117.6 kB / 17.84 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 203.9 kB / 18.79 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.508/1.508, allocations: 230.4 MB / 250 MB, free: 9.055 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.83 kB / 367.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3183, allocations: 53.31 MB / 420.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007816/0.3261, allocations: 5.871 MB / 426.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005605/0.3317, allocations: 2.754 MB / 429.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009319/0.3327, allocations: 23.94 kB / 429.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001844/0.3345, allocations: 0.7699 MB / 430.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.3361, allocations: 0.5594 MB / 430.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.3374, allocations: 0.5054 MB / 431.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002186/0.3395, allocations: 1.594 MB / 432.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007787/0.3403, allocations: 438.6 kB / 433.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009018/0.3412, allocations: 0.6073 MB / 433.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.3422, allocations: 0.7705 MB / 434.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002153/0.3425, allocations: 136 kB / 434.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.3429, allocations: 215.9 kB / 434.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006271/0.3435, allocations: 0.6503 MB / 435.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000916/0.3445, allocations: 0.9244 MB / 436.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00297/0.3474, allocations: 2.505 MB / 439 MB, free: 5.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3474, allocations: 0 / 439 MB, free: 5.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3474, allocations: 0 / 439 MB, free: 5.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.57e-05/0.3475, allocations: 0 / 439 MB, free: 5.941 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.005406/0.3529, allocations: 2.659 MB / 441.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.355e-05/0.3529, allocations: 11.97 kB / 441.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006007/0.3535, allocations: 239.4 kB / 441.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.3569, allocations: 1.564 MB / 443.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.3571, allocations: 92.27 kB / 443.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.3573, allocations: 91.92 kB / 443.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.3595, allocations: 1.104 MB / 444.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.3595, allocations: 3.938 kB / 444.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.683e-05/0.3596, allocations: 40 kB / 444.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.3596, allocations: 20 kB / 444.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3611, allocations: 0.7182 MB / 445.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008338/0.3695, allocations: 4.604 MB / 450.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.3709, allocations: 0.8944 MB / 451 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007517/0.3717, allocations: 357.1 kB / 451.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.34e-05/0.3717, allocations: 11.98 kB / 451.3 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/0.3718, allocations: 46.55 kB / 451.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.074e-06/0.3718, allocations: 0 / 451.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001933/0.3737, allocations: 0.8288 MB / 452.2 MB, free: 8.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000246/0.374, allocations: 431.2 kB / 452.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00419/0.3782, allocations: 2.756 MB / 455.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.3783, allocations: 37.7 kB / 455.4 MB, free: 4.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008542/0.3791, allocations: 0.8991 MB / 456.3 MB, free: 3.902 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.3793, allocations: 166.6 kB / 456.5 MB, free: 3.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.3796, allocations: 122.2 kB / 456.6 MB, free: 3.613 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3797, allocations: 334 kB / 456.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.3803, allocations: 253.1 kB / 457.2 MB, free: 3.031 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007918/0.3811, allocations: 0.5363 MB / 457.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.3822, allocations: 0.6132 MB / 458.3 MB, free: 1.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.3822, allocations: 4 kB / 458.3 MB, free: 1.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001862/0.384, allocations: 0.858 MB / 459.2 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3841, allocations: 8 kB / 459.2 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3841, allocations: 4 kB / 459.2 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.3841, allocations: 12.34 kB / 459.2 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006246/0.3847, allocations: 159.7 kB / 459.4 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.292e-05/0.3847, allocations: 15.94 kB / 459.4 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.3858, allocations: 159.4 kB / 459.5 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.3859, allocations: 31.94 kB / 459.6 MB, free: 448 kB / 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.0009425/0.3868, allocations: 0.5561 MB / 460.1 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003197/0.3872, allocations: 194.8 kB / 460.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.3886, allocations: 0.6924 MB / 461 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.3886, allocations: 8 kB / 461 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3886, allocations: 3.938 kB / 461 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3886, allocations: 0 / 461 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/0.3923, allocations: 2.129 MB / 463.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3923, allocations: 0 / 463.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.3928, allocations: 111.9 kB / 463.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.3928, allocations: 0 / 463.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.272e-05/0.3929, allocations: 8 kB / 463.3 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3929, allocations: 4.094 kB / 463.3 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3929, allocations: 4 kB / 463.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.3949, allocations: 1.06 MB / 464.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007367/0.3956, allocations: 419.7 kB / 464.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/0.3958, allocations: 24 kB / 464.8 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.3968, allocations: 139.8 kB / 464.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.3972, allocations: 151.8 kB / 465.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.577e-05/0.3972, allocations: 23.88 kB / 465.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002981/0.4002, allocations: 1.964 MB / 467 MB, free: 8.809 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4002, allocations: 0 / 467 MB, free: 8.809 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009985/0.4012, allocations: 311.4 kB / 467.4 MB, free: 8.504 MB / 382.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.001842/0.403, allocations: 486 kB / 467.8 MB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.4044, allocations: 0.5692 MB / 468.4 MB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/0.4045, allocations: 4 kB / 468.4 MB, free: 7.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006956/0.4051, allocations: 323.7 kB / 468.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.4067, allocations: 329.5 kB / 469 MB, free: 6.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00614/0.4129, allocations: 3.548 MB / 472.6 MB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.4141, allocations: 1.441 MB / 474 MB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008759/0.415, allocations: 291.1 kB / 474.3 MB, free: 1.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.4153, allocations: 107.4 kB / 474.4 MB, free: 1.531 MB / 382.1 MB Notification: Performance of SimCode: time 1.774e-06/0.4153, allocations: 0 / 474.4 MB, free: 1.531 MB / 382.1 MB Notification: Performance of Templates: time 0.05139/0.4667, allocations: 21.55 MB / 496 MB, free: 12.16 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches