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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002119/0.00212, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 99.48 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009747/0.0009748, allocations: 43.94 kB / 350 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3231, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005968/0.3291, allocations: 5.785 MB / 405.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004714/0.3339, allocations: 2.528 MB / 407.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009986/0.3349, allocations: 23.94 kB / 407.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001811/0.3369, allocations: 0.7122 MB / 408.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.3384, allocations: 465.7 kB / 409 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.3398, allocations: 468.2 kB / 409.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001623/0.3414, allocations: 1.539 MB / 411 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000613/0.342, allocations: 0.5357 MB / 411.5 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007555/0.3428, allocations: 0.533 MB / 412 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007258/0.3435, allocations: 0.7081 MB / 412.7 MB, free: 20.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001429/0.3437, allocations: 80 kB / 412.8 MB, free: 19.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00038/0.3441, allocations: 144 kB / 413 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004066/0.3445, allocations: 0.5918 MB / 413.6 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006479/0.3451, allocations: 0.8541 MB / 414.4 MB, free: 18.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.3468, allocations: 2.379 MB / 416.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3469, allocations: 0 / 416.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3469, allocations: 0 / 416.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.453e-05/0.3469, allocations: 0 / 416.8 MB, free: 15.95 MB / 298.7 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.004909/0.3518, allocations: 2.575 MB / 419.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.3519, allocations: 12.03 kB / 419.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003329/0.3522, allocations: 222.2 kB / 419.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002053/0.3543, allocations: 1.507 MB / 421.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004388/0.3548, allocations: 172.2 kB / 421.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.3549, allocations: 91.92 kB / 421.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.3565, allocations: 1.13 MB / 422.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3565, allocations: 0 / 422.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.849e-05/0.3566, allocations: 44 kB / 422.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.3566, allocations: 20 kB / 422.5 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.3578, allocations: 0.7377 MB / 423.3 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006393/0.3642, allocations: 4.661 MB / 427.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.3655, allocations: 0.9781 MB / 428.9 MB, free: 3.352 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007109/0.3662, allocations: 414 kB / 429.3 MB, free: 2.941 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.658e-05/0.3663, allocations: 4 kB / 429.3 MB, free: 2.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.3663, allocations: 46.56 kB / 429.4 MB, free: 2.883 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.537e-06/0.3663, allocations: 0 / 429.4 MB, free: 2.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.001967/0.3683, allocations: 0.8824 MB / 430.3 MB, free: 1.992 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.06e-05/0.3684, allocations: 423.2 kB / 430.7 MB, free: 1.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003387/0.3718, allocations: 2.739 MB / 433.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.372, allocations: 37.7 kB / 433.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007922/0.3728, allocations: 0.8745 MB / 434.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.373, allocations: 153.8 kB / 434.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002544/0.3732, allocations: 134.2 kB / 434.6 MB, free: 13.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3734, allocations: 330 kB / 434.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006943/0.3741, allocations: 277.1 kB / 435.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009054/0.375, allocations: 0.5597 MB / 435.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.3764, allocations: 0.6562 MB / 436.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3764, allocations: 0 / 436.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002168/0.3786, allocations: 0.896 MB / 437.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.3786, allocations: 11.94 kB / 437.3 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.3786, allocations: 7.984 kB / 437.3 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.3787, allocations: 8 kB / 437.3 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006673/0.3793, allocations: 180 kB / 437.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.48e-05/0.3794, allocations: 19.88 kB / 437.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.3809, allocations: 171.1 kB / 437.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/0.3809, allocations: 31.98 kB / 437.7 MB, free: 10.14 MB / 314.7 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.001048/0.382, allocations: 0.5522 MB / 438.3 MB, free: 9.582 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003799/0.3824, allocations: 181.8 kB / 438.5 MB, free: 9.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.3841, allocations: 0.739 MB / 439.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3841, allocations: 4 kB / 439.2 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.3841, allocations: 7.938 kB / 439.2 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.3842, allocations: 3.984 kB / 439.2 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/0.3882, allocations: 2.152 MB / 441.4 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3883, allocations: 4 kB / 441.4 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005642/0.3888, allocations: 115.8 kB / 441.5 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.3889, allocations: 4 kB / 441.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.403e-05/0.3889, allocations: 15.98 kB / 441.5 MB, free: 6.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.255e-06/0.3889, allocations: 7.938 kB / 441.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3889, allocations: 0 / 441.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02044/0.4094, allocations: 7.894 MB / 449.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008353/0.4103, allocations: 410.7 kB / 449.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.4104, allocations: 15.94 kB / 449.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.4116, allocations: 155.8 kB / 450 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003241/0.4119, allocations: 151.7 kB / 450.1 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.497e-05/0.4119, allocations: 16 kB / 450.1 MB, free: 13.4 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002768/0.4147, allocations: 1.951 MB / 452.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4147, allocations: 4 kB / 452.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001472/0.4162, allocations: 451.2 kB / 452.5 MB, free: 10.98 MB / 330.7 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.001321/0.4176, allocations: 0.5829 MB / 453.1 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.4191, allocations: 0.6311 MB / 453.7 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4191, allocations: 0 / 453.7 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.4199, allocations: 376.7 kB / 454.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.4215, allocations: 313.7 kB / 454.4 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006983/0.4285, allocations: 4.354 MB / 458.8 MB, free: 4.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.4298, allocations: 1.449 MB / 460.2 MB, free: 3.438 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001157/0.4309, allocations: 302.8 kB / 460.5 MB, free: 3.137 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003615/0.4313, allocations: 99.42 kB / 460.6 MB, free: 3.039 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4313, allocations: 0 / 460.6 MB, free: 3.039 MB / 330.7 MB Notification: Performance of Templates: time 0.04137/0.4727, allocations: 21.07 MB / 481.7 MB, free: 14.15 MB / 362.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches