Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002204/0.002204, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.003019/0.003019, allocations: 189.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.024/3.024, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 51.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7763/0.7782, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.01016/0.7884, allocations: 2.964 MB / 404.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.7911, allocations: 0.7206 MB / 405.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006999/0.792, allocations: 8 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005535/0.7926, allocations: 59.38 kB / 405.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009009/0.7935, allocations: 115.1 kB / 405.3 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009125/0.7944, allocations: 99.83 kB / 405.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.7959, allocations: 418.3 kB / 405.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007635/0.7967, allocations: 205.8 kB / 406 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004662/0.7972, allocations: 159.4 kB / 406.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006753/0.7979, allocations: 187.1 kB / 406.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.7981, allocations: 44 kB / 406.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.7984, allocations: 52 kB / 406.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.7987, allocations: 111.6 kB / 406.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006547/0.7994, allocations: 203.1 kB / 406.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.8005, allocations: 0.4994 MB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.8005, allocations: 0 / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.8005, allocations: 0 / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.023e-05/0.8006, allocations: 0 / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.005472/0.8061, allocations: 0.7874 MB / 408 MB, free: 2.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.662e-05/0.8062, allocations: 15.83 kB / 408 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.8065, allocations: 44.41 kB / 408 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.8078, allocations: 346.6 kB / 408.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.865e-05/0.8078, allocations: 25.03 kB / 408.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.808, allocations: 28.38 kB / 408.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.8092, allocations: 350.2 kB / 408.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.8093, allocations: 0 / 408.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.8093, allocations: 12 kB / 408.8 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.8094, allocations: 8 kB / 408.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008404/0.8102, allocations: 246.4 kB / 409 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004066/0.8143, allocations: 1.296 MB / 410.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007338/0.8151, allocations: 178.5 kB / 410.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006342/0.8158, allocations: 128.7 kB / 410.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.87e-05/0.8159, allocations: 4 kB / 410.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.218e-05/0.816, allocations: 38.56 kB / 410.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 5.841e-06/0.816, allocations: 0 / 410.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.001029/0.8171, allocations: 229.6 kB / 410.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.8172, allocations: 55.34 kB / 411 MB, free: 15.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008003/0.818, allocations: 318.9 kB / 411.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.8181, allocations: 29.7 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.8184, allocations: 215.9 kB / 411.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.8185, allocations: 47.2 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.8187, allocations: 53.7 kB / 411.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002285/0.8189, allocations: 334.8 kB / 411.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.8192, allocations: 75.95 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002865/0.8195, allocations: 127.7 kB / 412.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.8199, allocations: 163.6 kB / 412.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.8199, allocations: 4 kB / 412.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007197/0.8206, allocations: 247.8 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.8207, allocations: 4 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.8207, allocations: 4 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.8208, allocations: 4 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.8211, allocations: 43.86 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.8211, allocations: 8.25 kB / 412.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006697/0.8218, allocations: 67.67 kB / 412.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/0.8219, allocations: 12 kB / 412.7 MB, free: 13.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002946/0.8222, allocations: 157.7 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.8224, allocations: 27.66 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007466/0.8231, allocations: 207.1 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.8231, allocations: 7.938 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.8232, allocations: 0 / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.8232, allocations: 0 / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.8248, allocations: 0.6279 MB / 413.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.8248, allocations: 4 kB / 413.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.8251, allocations: 23.98 kB / 413.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.829e-05/0.8252, allocations: 7.984 kB / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.8252, allocations: 4 kB / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.8252, allocations: 4.031 kB / 413.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.8253, allocations: 4 kB / 413.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.8263, allocations: 380.3 kB / 414.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.8265, allocations: 104.8 kB / 414.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.8266, allocations: 8 kB / 414.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000724/0.8273, allocations: 59.98 kB / 414.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002962/0.8276, allocations: 75.88 kB / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.8277, allocations: 4 kB / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004247/0.8281, allocations: 237.9 kB / 414.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8281, allocations: 0 / 414.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007517/0.8289, allocations: 87.69 kB / 414.7 MB, free: 11.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.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 (16): * Single equations (assignments): 16 * 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.0002981/0.8292, allocations: 115.1 kB / 414.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007417/0.83, allocations: 175.8 kB / 415 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.83, allocations: 3.938 kB / 415 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.8304, allocations: 111.2 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008359/0.8312, allocations: 53.31 kB / 415.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.8341, allocations: 0.7518 MB / 415.9 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.8352, allocations: 0.779 MB / 416.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.8354, allocations: 31.36 kB / 416.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.8354, allocations: 4 kB / 416.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of Templates: time 0.01542/0.8508, allocations: 4.333 MB / 421 MB, free: 4.738 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches