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.001158/0.001157, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 54.41 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1121, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006851/0.119, allocations: 5.838 MB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004249/0.1233, allocations: 2.742 MB / 367.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004696/0.1238, allocations: 23.88 kB / 367.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.1253, allocations: 0.7699 MB / 368.3 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.1263, allocations: 0.5555 MB / 368.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1274, allocations: 0.5058 MB / 369.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.1289, allocations: 1.598 MB / 370.9 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000741/0.1297, allocations: 0.6039 MB / 371.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006764/0.1304, allocations: 0.6111 MB / 372.2 MB, free: 8 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1671/0.2975, allocations: 0.7375 MB / 372.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003378/0.2978, allocations: 133.6 kB / 373 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004704/0.2983, allocations: 202.9 kB / 373.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000584/0.2989, allocations: 0.6413 MB / 373.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008256/0.2997, allocations: 0.918 MB / 374.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002535/0.3023, allocations: 2.494 MB / 377.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3023, allocations: 0.7969 kB / 377.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3023, allocations: 1.844 kB / 377.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.719e-05/0.3023, allocations: 0 / 377.3 MB, free: 10.87 MB / 302.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.005157/0.3075, allocations: 2.585 MB / 379.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3076, allocations: 9 kB / 379.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003951/0.308, allocations: 222.6 kB / 380.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002565/0.3105, allocations: 1.547 MB / 381.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.265e-05/0.3106, allocations: 95.03 kB / 381.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.3108, allocations: 84.86 kB / 381.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.3125, allocations: 1.104 MB / 382.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.3126, allocations: 5.125 kB / 382.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/0.3127, allocations: 38.62 kB / 383 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.3127, allocations: 21.66 kB / 383 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.3142, allocations: 0.717 MB / 383.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007761/0.322, allocations: 4.597 MB / 388.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.3232, allocations: 0.9422 MB / 389.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007174/0.3239, allocations: 383.4 kB / 389.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.476e-05/0.324, allocations: 14.53 kB / 389.6 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.324, allocations: 39.41 kB / 389.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.444e-06/0.3241, allocations: 0 / 389.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.001933/0.326, allocations: 0.8181 MB / 390.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.3261, allocations: 421.4 kB / 390.9 MB, free: 4.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003841/0.33, allocations: 2.778 MB / 393.7 MB, free: 2.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/0.3301, allocations: 39.2 kB / 393.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006649/0.3308, allocations: 0.8791 MB / 394.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.331, allocations: 163.7 kB / 394.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.3312, allocations: 121 kB / 394.9 MB, free: 1.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.511e-05/0.3313, allocations: 327.4 kB / 395.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005546/0.3319, allocations: 254.6 kB / 395.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007199/0.3326, allocations: 0.5358 MB / 396 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.3336, allocations: 0.6189 MB / 396.6 MB, free: 424 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.3336, allocations: 1.312 kB / 396.6 MB, free: 424 kB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001745/0.3354, allocations: 0.854 MB / 397.4 MB, free: 16 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3354, allocations: 10.41 kB / 397.5 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3354, allocations: 7.25 kB / 397.5 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.3355, allocations: 10.95 kB / 397.5 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.336, allocations: 157.6 kB / 397.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.336, allocations: 13.94 kB / 397.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.3374, allocations: 165.4 kB / 397.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.545e-05/0.3375, allocations: 26.41 kB / 397.8 MB, free: 15.89 MB / 318.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.001156/0.3387, allocations: 0.5572 MB / 398.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.339, allocations: 178.7 kB / 398.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.3404, allocations: 0.6974 MB / 399.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3404, allocations: 6.266 kB / 399.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3404, allocations: 3.156 kB / 399.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3404, allocations: 3.938 kB / 399.3 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.3443, allocations: 2.124 MB / 401.4 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3443, allocations: 0 / 401.4 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.3447, allocations: 110.1 kB / 401.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-06/0.3448, allocations: 7.047 kB / 401.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.644e-05/0.3448, allocations: 7.125 kB / 401.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.3448, allocations: 5.469 kB / 401.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3448, allocations: 2.25 kB / 401.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.3466, allocations: 1.053 MB / 402.6 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008947/0.3475, allocations: 414.6 kB / 403 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.3477, allocations: 13.97 kB / 403 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000972/0.3487, allocations: 139.8 kB / 403.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/0.349, allocations: 154.3 kB / 403.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.3491, allocations: 20 kB / 403.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003089/0.3522, allocations: 1.964 MB / 405.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3522, allocations: 0 / 405.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00126/0.3535, allocations: 319.1 kB / 405.6 MB, free: 9.953 MB / 318.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.00115/0.3546, allocations: 481.1 kB / 406 MB, free: 9.672 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.356, allocations: 0.587 MB / 406.6 MB, free: 9.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.356, allocations: 5.688 kB / 406.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000652/0.3567, allocations: 348.3 kB / 407 MB, free: 8.766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.3585, allocations: 316.6 kB / 407.3 MB, free: 8.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005774/0.3643, allocations: 3.486 MB / 410.8 MB, free: 4.941 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.3654, allocations: 1.448 MB / 412.2 MB, free: 3.461 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009909/0.3664, allocations: 295.1 kB / 412.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003255/0.3667, allocations: 103.4 kB / 412.6 MB, free: 3.066 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3667, allocations: 6.562 kB / 412.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of Templates: time 0.03732/0.4041, allocations: 21.16 MB / 433.8 MB, free: 14.11 MB / 350.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches