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.001077/0.001077, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001233/0.001234, allocations: 191 kB / 18 MB, free: 4.977 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 47.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3432, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004683/0.348, allocations: 2.967 MB / 403.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3494, allocations: 0.7167 MB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.3496, allocations: 7.938 kB / 404.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003975/0.35, allocations: 63.42 kB / 404.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.3503, allocations: 107.1 kB / 404.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003832/0.3507, allocations: 103.8 kB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004357/0.3511, allocations: 422.2 kB / 405.1 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003704/0.3515, allocations: 213.7 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.3518, allocations: 159.4 kB / 405.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.3521, allocations: 175.2 kB / 405.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.361e-05/0.3521, allocations: 40 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3522, allocations: 55.98 kB / 405.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.3524, allocations: 119.6 kB / 405.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.3526, allocations: 199 kB / 406 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005098/0.3531, allocations: 0.5033 MB / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3531, allocations: 0 / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3531, allocations: 0 / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3531, allocations: 0 / 406.5 MB, free: 3.043 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.001545/0.3547, allocations: 0.7835 MB / 407.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3547, allocations: 15.89 kB / 407.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.688e-05/0.3549, allocations: 44.41 kB / 407.4 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004941/0.3554, allocations: 342.6 kB / 407.7 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.3554, allocations: 21.03 kB / 407.7 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.3555, allocations: 32.38 kB / 407.8 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.356, allocations: 350.2 kB / 408.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.356, allocations: 0 / 408.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.3561, allocations: 16 kB / 408.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.3561, allocations: 8 kB / 408.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004136/0.3565, allocations: 234.5 kB / 408.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.3584, allocations: 1.3 MB / 409.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.3588, allocations: 182.5 kB / 409.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.3591, allocations: 128.7 kB / 410 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.3591, allocations: 7.984 kB / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3592, allocations: 38.56 kB / 410 MB, free: 15.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.3592, allocations: 0 / 410 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004751/0.3596, allocations: 221.6 kB / 410.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.3597, allocations: 59.34 kB / 410.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.3601, allocations: 326.9 kB / 410.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.3601, allocations: 29.7 kB / 410.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.3603, allocations: 208 kB / 410.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/0.3603, allocations: 59.19 kB / 410.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.3604, allocations: 49.64 kB / 410.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3606, allocations: 330.8 kB / 411.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.3607, allocations: 71.97 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.3609, allocations: 135.7 kB / 411.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.3612, allocations: 169.9 kB / 411.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3612, allocations: 0 / 411.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004037/0.3616, allocations: 241.2 kB / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3616, allocations: 4 kB / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3616, allocations: 4 kB / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.3617, allocations: 4 kB / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.3619, allocations: 55.84 kB / 411.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3619, allocations: 3.938 kB / 411.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.3622, allocations: 67.77 kB / 412 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.3623, allocations: 12 kB / 412 MB, free: 13.24 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.0001881/0.3625, allocations: 153.8 kB / 412.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.3626, allocations: 27.66 kB / 412.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004189/0.363, allocations: 199.1 kB / 412.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.363, allocations: 4 kB / 412.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.363, allocations: 0 / 412.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.363, allocations: 3.984 kB / 412.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008127/0.3638, allocations: 0.628 MB / 413 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3638, allocations: 0 / 413 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/0.364, allocations: 27.98 kB / 413 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.364, allocations: 3.984 kB / 413 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.364, allocations: 4 kB / 413 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.3641, allocations: 11.94 kB / 413.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3641, allocations: 0 / 413.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000488/0.3646, allocations: 380.4 kB / 413.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3647, allocations: 112.8 kB / 413.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.3647, allocations: 0 / 413.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.3651, allocations: 55.92 kB / 413.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.3653, allocations: 71.88 kB / 413.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.3653, allocations: 12.06 kB / 413.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002507/0.3656, allocations: 237.9 kB / 413.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3656, allocations: 0 / 413.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003455/0.3659, allocations: 83.69 kB / 414 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.0001739/0.3661, allocations: 119.1 kB / 414.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000343/0.3664, allocations: 172.2 kB / 414.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3665, allocations: 8.125 kB / 414.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.3666, allocations: 107.1 kB / 414.4 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.0004179/0.3671, allocations: 59.86 kB / 414.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.3685, allocations: 0.7163 MB / 415.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3689, allocations: 0.779 MB / 415.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.3691, allocations: 42.22 kB / 416 MB, free: 9.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.413e-05/0.3691, allocations: 23.44 kB / 416 MB, free: 9.055 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3692, allocations: 0 / 416 MB, free: 9.055 MB / 334.1 MB Notification: Performance of Templates: time 0.009474/0.3786, allocations: 4.548 MB / 420.6 MB, free: 4.547 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/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