Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 112.6 kB / 17.07 MB, free: 5.984 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.001421/0.001421, allocations: 195 kB / 18 MB, free: 5.074 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.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2658, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01023/0.2761, allocations: 10.05 MB / 410.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004624/0.2807, allocations: 3.47 MB / 413.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005302/0.2813, allocations: 23.94 kB / 413.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.2834, allocations: 1.175 MB / 414.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000976/0.2844, allocations: 0.6491 MB / 415.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009453/0.2854, allocations: 495.6 kB / 416.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006052/0.2915, allocations: 7.347 MB / 423.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004373/0.2959, allocations: 4.458 MB / 427.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003412/0.2993, allocations: 2.851 MB / 430.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003534/0.3028, allocations: 2.935 MB / 433.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.3039, allocations: 0.6796 MB / 434.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.3052, allocations: 0.7226 MB / 435.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003788/0.309, allocations: 5.806 MB / 440.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00895/0.3179, allocations: 7.183 MB / 448.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02095/0.3389, allocations: 24.96 MB / 473 MB, free: 15.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.339, allocations: 0 / 473 MB, free: 15.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.339, allocations: 0 / 473 MB, free: 15.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006883/0.3397, allocations: 0 / 473 MB, free: 15.7 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.04813/0.3878, allocations: 19.2 MB / 492.2 MB, free: 12.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3879, allocations: 15.97 kB / 492.2 MB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/0.3889, allocations: 499.6 kB / 492.7 MB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004313/0.3932, allocations: 1.633 MB / 494.4 MB, free: 10.19 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04315/0.4364, allocations: 17.87 MB / 0.5002 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004233/0.4369, allocations: 340.2 kB / 0.5005 GB, free: 7.898 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009698/0.4379, allocations: 320 kB / 0.5008 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/0.4488, allocations: 6.495 MB / 0.5072 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.919e-05/0.4489, allocations: 7.938 kB / 0.5072 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003964/0.4493, allocations: 147.9 kB / 0.5073 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.479e-05/0.4493, allocations: 80 kB / 0.5074 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008573/0.4579, allocations: 5.126 MB / 0.5124 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4592/0.9172, allocations: 33.44 MB / 0.5451 GB, free: 105.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006824/0.924, allocations: 4.31 MB / 0.5493 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003941/0.928, allocations: 2.588 MB / 0.5518 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.9282, allocations: 19.97 kB / 0.5518 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.792e-05/0.9282, allocations: 72.38 kB / 0.5519 GB, free: 103.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.318e-06/0.9283, allocations: 0 / 0.5519 GB, free: 103.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01622/0.9445, allocations: 7.602 MB / 0.5593 GB, free: 101 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002107/0.9447, allocations: 0.9889 MB / 0.5603 GB, free: 99.78 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07195/1.017, allocations: 35.76 MB / 0.5952 GB, free: 66.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004746/1.017, allocations: 61.7 kB / 0.5953 GB, free: 66.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01037/1.028, allocations: 7.501 MB / 0.6026 GB, free: 59.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006551/1.028, allocations: 0.5748 MB / 0.6032 GB, free: 58.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006658/1.029, allocations: 431.4 kB / 0.6036 GB, free: 58.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.206e-05/1.029, allocations: 309.1 kB / 0.6039 GB, free: 58.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002866/1.032, allocations: 1.971 MB / 0.6058 GB, free: 56.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00313/1.035, allocations: 2.856 MB / 0.6086 GB, free: 53.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005389/1.04, allocations: 4.211 MB / 0.6127 GB, free: 48.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/1.04, allocations: 8 kB / 0.6127 GB, free: 48.69 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01367/1.054, allocations: 6.091 MB / 0.6187 GB, free: 42.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/1.054, allocations: 12 kB / 0.6187 GB, free: 42.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/1.054, allocations: 19.98 kB / 0.6187 GB, free: 42.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008672/1.055, allocations: 364.7 kB / 0.619 GB, free: 42.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/1.057, allocations: 0.7 MB / 0.6197 GB, free: 41.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004217/1.061, allocations: 4.606 MB / 0.6242 GB, free: 36.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008692/1.07, allocations: 0.6673 MB / 0.6249 GB, free: 36.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000268/1.07, allocations: 76 kB / 0.6249 GB, free: 36.07 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0111/1.081, allocations: 8.124 MB / 0.6329 GB, free: 27.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005207/1.087, allocations: 1.471 MB / 0.6343 GB, free: 26.47 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/1.098, allocations: 6.027 MB / 0.6402 GB, free: 20.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/1.098, allocations: 15.94 kB / 0.6402 GB, free: 20.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/1.098, allocations: 4 kB / 0.6402 GB, free: 20.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/1.098, allocations: 11.97 kB / 0.6402 GB, free: 20.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04226/1.14, allocations: 18.53 MB / 0.6583 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/1.14, allocations: 0 / 0.6583 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001736/1.142, allocations: 0.5655 MB / 0.6589 GB, free: 1.277 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007189/1.143, allocations: 293.5 kB / 0.6591 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/1.143, allocations: 39.98 kB / 0.6592 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00434/1.147, allocations: 4.048 MB / 0.6631 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.147, allocations: 0 / 0.6631 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01714/1.165, allocations: 7.704 MB / 0.6707 GB, free: 5.047 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01574/1.18, allocations: 4.262 MB / 0.6748 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005483/1.186, allocations: 44 kB / 0.6749 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007322/1.193, allocations: 0.6591 MB / 0.6755 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/1.194, allocations: 434.6 kB / 0.6759 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002846/1.195, allocations: 44 kB / 0.676 GB, free: 15.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0617/1.256, allocations: 25.59 MB / 0.701 GB, free: 6.086 MB / 0.4982 GB Notification: Performance of sort global known variables: time 7.31e-07/1.256, allocations: 0 / 0.701 GB, free: 6.086 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01064/1.267, allocations: 1.851 MB / 0.7028 GB, free: 4.301 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01978/1.287, allocations: 8.653 MB / 0.7112 GB, free: 11.76 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009049/1.296, allocations: 4.493 MB / 0.7156 GB, free: 7.262 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.012e-05/1.296, allocations: 5.219 kB / 0.7156 GB, free: 7.258 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004257/1.3, allocations: 2.272 MB / 0.7178 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02247/1.323, allocations: 2.116 MB / 0.7199 GB, free: 2.879 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6662/1.989, allocations: 226.4 MB / 0.941 GB, free: 7.508 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2464/2.235, allocations: 10.16 MB / 0.9509 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01589/2.251, allocations: 8.151 MB / 0.9589 GB, free: 188.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01368/2.265, allocations: 6.082 MB / 0.9648 GB, free: 183.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.583e-06/2.265, allocations: 0 / 0.9648 GB, free: 183.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6121/2.877, allocations: 329.8 MB / 1.287 GB, free: 55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 72.76/75.63, allocations: 2.016 kB / 1.287 GB, free: 55 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches