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.001696/0.001702, allocations: 117.2 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002034/0.002035, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 50.53 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01615/0.3415, allocations: 10.1 MB / 418.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007666/0.3493, allocations: 3.622 MB / 422.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.3504, allocations: 23.88 kB / 422.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003649/0.3541, allocations: 1.187 MB / 423.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002371/0.3565, allocations: 0.6802 MB / 424.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.3581, allocations: 490.3 kB / 424.8 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.3691, allocations: 7.345 MB / 432.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007539/0.3767, allocations: 4.489 MB / 436.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005058/0.3818, allocations: 2.863 MB / 439.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006111/0.3879, allocations: 2.927 MB / 442.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002495/0.3905, allocations: 0.6797 MB / 443.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002937/0.3935, allocations: 0.7187 MB / 443.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00704/0.4005, allocations: 5.826 MB / 449.7 MB, free: 8.406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0154/0.4159, allocations: 7.187 MB / 456.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03279/0.4488, allocations: 25.01 MB / 481.9 MB, free: 8.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4489, allocations: 0 / 481.9 MB, free: 8.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4489, allocations: 0 / 481.9 MB, free: 8.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007766/0.4496, allocations: 0 / 481.9 MB, free: 8.094 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.05278/0.5024, allocations: 19.23 MB / 0.4894 GB, free: 4.703 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/0.5025, allocations: 12.03 kB / 0.4894 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001994/0.5045, allocations: 499.6 kB / 0.4899 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006778/0.5113, allocations: 1.639 MB / 0.4915 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04492/0.5563, allocations: 17.92 MB / 0.509 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004815/0.5568, allocations: 328.2 kB / 0.5093 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/0.5579, allocations: 332 kB / 0.5096 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/0.571, allocations: 6.495 MB / 0.5159 GB, free: 9.168 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.761e-05/0.5711, allocations: 3.938 kB / 0.5159 GB, free: 9.164 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005681/0.5717, allocations: 152 kB / 0.5161 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.705e-05/0.5718, allocations: 80 kB / 0.5162 GB, free: 8.938 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.5818, allocations: 5.126 MB / 0.5212 GB, free: 3.801 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4677/1.05, allocations: 33.44 MB / 0.5538 GB, free: 99.53 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006289/1.056, allocations: 4.313 MB / 0.558 GB, free: 97.58 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00351/1.059, allocations: 2.581 MB / 0.5605 GB, free: 96.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.859e-05/1.06, allocations: 22.27 kB / 0.5606 GB, free: 96.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.76e-05/1.06, allocations: 61.25 kB / 0.5606 GB, free: 96.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.158e-06/1.06, allocations: 3.719 kB / 0.5606 GB, free: 96.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01617/1.076, allocations: 7.611 MB / 0.5681 GB, free: 89.72 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/1.076, allocations: 0.9824 MB / 0.569 GB, free: 88.51 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05546/1.131, allocations: 35.88 MB / 0.6041 GB, free: 52.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004731/1.132, allocations: 61.7 kB / 0.6041 GB, free: 52.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.009701/1.142, allocations: 7.535 MB / 0.6115 GB, free: 45.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008065/1.143, allocations: 0.5722 MB / 0.612 GB, free: 44.94 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007509/1.143, allocations: 427.2 kB / 0.6124 GB, free: 44.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.788e-05/1.143, allocations: 309.1 kB / 0.6127 GB, free: 44.21 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002984/1.146, allocations: 1.971 MB / 0.6147 GB, free: 42.24 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003418/1.15, allocations: 2.852 MB / 0.6175 GB, free: 39.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005681/1.156, allocations: 4.205 MB / 0.6216 GB, free: 34.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/1.156, allocations: 8 kB / 0.6216 GB, free: 34.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01408/1.17, allocations: 6.103 MB / 0.6275 GB, free: 28.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/1.17, allocations: 15.61 kB / 0.6275 GB, free: 28.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/1.17, allocations: 17.31 kB / 0.6276 GB, free: 28.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008841/1.171, allocations: 367.5 kB / 0.6279 GB, free: 28.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/1.173, allocations: 0.698 MB / 0.6286 GB, free: 27.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/1.177, allocations: 4.612 MB / 0.6331 GB, free: 22.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007497/1.184, allocations: 0.6659 MB / 0.6337 GB, free: 22.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004055/1.185, allocations: 72 kB / 0.6338 GB, free: 22.05 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.009622/1.195, allocations: 8.159 MB / 0.6418 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004914/1.199, allocations: 1.471 MB / 0.6432 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.211, allocations: 6.044 MB / 0.6491 GB, free: 6.355 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/1.211, allocations: 12 kB / 0.6491 GB, free: 6.344 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/1.211, allocations: 3.938 kB / 0.6491 GB, free: 6.344 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/1.211, allocations: 7.969 kB / 0.6491 GB, free: 6.336 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0474/1.259, allocations: 18.59 MB / 0.6673 GB, free: 3.727 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/1.259, allocations: 0 / 0.6673 GB, free: 3.727 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/1.261, allocations: 0.5577 MB / 0.6678 GB, free: 3.164 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008211/1.262, allocations: 294.9 kB / 0.6681 GB, free: 2.875 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/1.262, allocations: 40.64 kB / 0.6682 GB, free: 2.836 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004618/1.266, allocations: 4.04 MB / 0.6721 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.266, allocations: 0 / 0.6721 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/1.283, allocations: 7.708 MB / 0.6796 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01385/1.297, allocations: 4.265 MB / 0.6838 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005014/1.302, allocations: 47.98 kB / 0.6838 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007988/1.31, allocations: 0.659 MB / 0.6845 GB, free: 1.945 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009769/1.311, allocations: 440.6 kB / 0.6849 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/1.311, allocations: 44 kB / 0.6849 GB, free: 1.469 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.07581/1.387, allocations: 25.67 MB / 0.71 GB, free: 7.871 MB / 0.5138 GB Notification: Performance of sort global known variables: time 7.62e-07/1.387, allocations: 4 kB / 0.71 GB, free: 7.867 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01451/1.401, allocations: 1.838 MB / 0.7118 GB, free: 6.098 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.02399/1.425, allocations: 8.65 MB / 0.7203 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009271/1.435, allocations: 4.49 MB / 0.7246 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.956e-05/1.435, allocations: 5.219 kB / 0.7247 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004578/1.439, allocations: 2.277 MB / 0.7269 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0216/1.461, allocations: 2.097 MB / 0.7289 GB, free: 4.684 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6792/2.14, allocations: 226.3 MB / 0.95 GB, free: 2.754 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02175/2.162, allocations: 10.19 MB / 0.9599 GB, free: 8.527 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.2829/2.445, 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.01494/2.46, allocations: 6.102 MB / 0.9734 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.232e-06/2.46, allocations: 0 / 0.9734 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6924/3.152, allocations: 330.1 MB / 1.296 GB, free: 76.72 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 69.47/72.63, allocations: 0 / 1.296 GB, free: 76.72 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