Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001267/0.001267, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001256, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2705, allocations: 50.54 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01224/0.2827, allocations: 10.1 MB / 418.8 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005699/0.2885, allocations: 3.622 MB / 422.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006465/0.2892, allocations: 23.88 kB / 422.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.2917, allocations: 1.183 MB / 423.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001339/0.293, allocations: 0.6724 MB / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.2941, allocations: 490.6 kB / 424.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008386/0.3025, allocations: 7.337 MB / 432.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005369/0.3079, allocations: 4.489 MB / 436.7 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.312, allocations: 2.839 MB / 439.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004721/0.3168, allocations: 2.927 MB / 442.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.3181, allocations: 0.6797 MB / 443.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001803/0.32, allocations: 0.7187 MB / 443.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005274/0.3252, allocations: 5.826 MB / 449.6 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01122/0.3365, allocations: 7.187 MB / 456.8 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02833/0.3649, allocations: 25.01 MB / 481.8 MB, free: 8.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3649, allocations: 0 / 481.8 MB, free: 8.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3649, allocations: 4 kB / 481.8 MB, free: 8.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006934/0.3656, allocations: 7.938 kB / 481.9 MB, free: 8.145 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.04527/0.4109, allocations: 19.22 MB / 0.4893 GB, free: 4.762 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.411, allocations: 8.031 kB / 0.4893 GB, free: 4.754 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001216/0.4122, allocations: 0.4918 MB / 0.4898 GB, free: 4.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004871/0.4171, allocations: 1.639 MB / 0.4914 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03983/0.4569, allocations: 17.92 MB / 0.5089 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004843/0.4574, allocations: 332.2 kB / 0.5092 GB, free: 284 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007787/0.4582, allocations: 324 kB / 0.5095 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01228/0.4705, allocations: 6.499 MB / 0.5159 GB, free: 9.234 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-05/0.4706, allocations: 7.938 kB / 0.5159 GB, free: 9.227 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000413/0.471, allocations: 144 kB / 0.516 GB, free: 9.086 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.131e-05/0.4711, allocations: 80 kB / 0.5161 GB, free: 9.008 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009265/0.4804, allocations: 5.13 MB / 0.5211 GB, free: 3.867 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4735/0.954, allocations: 33.44 MB / 0.5538 GB, free: 99.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006457/0.9605, allocations: 4.304 MB / 0.558 GB, free: 97.63 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003432/0.9639, allocations: 2.582 MB / 0.5605 GB, free: 96.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.53e-05/0.964, allocations: 24.66 kB / 0.5605 GB, free: 96.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.695e-05/0.9641, allocations: 68.5 kB / 0.5606 GB, free: 96.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.767e-06/0.9641, allocations: 0 / 0.5606 GB, free: 96.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01577/0.9799, allocations: 7.598 MB / 0.568 GB, free: 89.82 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000209/0.9801, allocations: 0.9863 MB / 0.569 GB, free: 88.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06179/1.042, allocations: 35.88 MB / 0.604 GB, free: 52.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005444/1.043, allocations: 61.7 kB / 0.6041 GB, free: 52.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01102/1.054, allocations: 7.537 MB / 0.6114 GB, free: 45.53 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000719/1.054, allocations: 0.5686 MB / 0.612 GB, free: 45.03 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006816/1.055, allocations: 435.2 kB / 0.6124 GB, free: 44.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.295e-05/1.055, allocations: 301.1 kB / 0.6127 GB, free: 44.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00295/1.058, allocations: 1.967 MB / 0.6146 GB, free: 42.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003358/1.061, allocations: 2.86 MB / 0.6174 GB, free: 39.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005526/1.067, allocations: 4.209 MB / 0.6215 GB, free: 34.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/1.067, allocations: 4 kB / 0.6215 GB, free: 34.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01353/1.08, allocations: 6.104 MB / 0.6275 GB, free: 28.63 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/1.081, allocations: 12 kB / 0.6275 GB, free: 28.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/1.081, allocations: 19.72 kB / 0.6275 GB, free: 28.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008612/1.081, allocations: 372.1 kB / 0.6279 GB, free: 28.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/1.083, allocations: 0.6995 MB / 0.6286 GB, free: 27.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004012/1.087, allocations: 4.609 MB / 0.6331 GB, free: 22.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006819/1.094, allocations: 0.6639 MB / 0.6337 GB, free: 22.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/1.094, allocations: 76 kB / 0.6338 GB, free: 22.14 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.009521/1.104, allocations: 8.153 MB / 0.6417 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004938/1.109, allocations: 1.474 MB / 0.6432 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/1.12, allocations: 6.036 MB / 0.6491 GB, free: 6.453 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/1.12, allocations: 19.75 kB / 0.6491 GB, free: 6.438 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.12, allocations: 0 / 0.6491 GB, free: 6.438 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/1.12, allocations: 7.969 kB / 0.6491 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04374/1.164, allocations: 18.59 MB / 0.6673 GB, free: 3.824 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/1.164, allocations: 0 / 0.6673 GB, free: 3.824 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/1.166, allocations: 0.5694 MB / 0.6678 GB, free: 3.254 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008548/1.167, allocations: 288.7 kB / 0.6681 GB, free: 2.969 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001402/1.167, allocations: 43.98 kB / 0.6681 GB, free: 2.926 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/1.172, allocations: 4.029 MB / 0.6721 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.172, allocations: 0 / 0.6721 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/1.19, allocations: 7.712 MB / 0.6796 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01084/1.201, allocations: 4.266 MB / 0.6838 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00504/1.206, allocations: 51.98 kB / 0.6838 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007554/1.213, allocations: 0.659 MB / 0.6845 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001102/1.214, allocations: 432.7 kB / 0.6849 GB, free: 1.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/1.215, allocations: 40 kB / 0.6849 GB, free: 1.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0575/1.272, allocations: 25.67 MB / 0.71 GB, free: 7.977 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.91e-07/1.272, allocations: 0 / 0.71 GB, free: 7.977 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01186/1.284, allocations: 1.853 MB / 0.7118 GB, free: 6.191 MB / 0.5138 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.02133/1.305, allocations: 8.639 MB / 0.7202 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01009/1.315, allocations: 4.491 MB / 0.7246 GB, free: 9.152 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/1.315, allocations: 5.969 kB / 0.7246 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004246/1.32, allocations: 2.272 MB / 0.7268 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01798/1.338, allocations: 2.09 MB / 0.7289 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6702/2.008, allocations: 226.4 MB / 0.9499 GB, free: 3.301 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02417/2.032, allocations: 10.2 MB / 0.9599 GB, free: 9.07 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.2621/2.294, allocations: 7.688 MB / 0.9674 GB, free: 190.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0148/2.309, allocations: 6.096 MB / 0.9733 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.032e-06/2.309, allocations: 0 / 0.9733 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6506/2.96, allocations: 330.1 MB / 1.296 GB, free: 77.71 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 131.5/134.5, allocations: 0 / 1.296 GB, free: 77.71 MB / 0.5607 GB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches