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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 47.91 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2585, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.0128/0.2713, allocations: 10.12 MB / 432.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005513/0.2769, allocations: 3.486 MB / 436.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008148/0.2777, allocations: 35.75 kB / 436.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002674/0.2803, allocations: 1.19 MB / 437.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.2819, allocations: 0.649 MB / 438.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.2831, allocations: 498.7 kB / 438.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008752/0.2918, allocations: 7.34 MB / 445.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003161/0.295, allocations: 2.08 MB / 448 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004095/0.2991, allocations: 2.917 MB / 450.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004654/0.3037, allocations: 2.985 MB / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00172/0.3055, allocations: 0.6758 MB / 454.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002139/0.3076, allocations: 0.7226 MB / 455.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005565/0.3132, allocations: 5.826 MB / 461.1 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01124/0.3244, allocations: 7.184 MB / 468.3 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02674/0.3512, allocations: 24.97 MB / 493.3 MB, free: 7.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.3512, allocations: 4 kB / 493.3 MB, free: 7.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3512, allocations: 0 / 493.3 MB, free: 7.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007645/0.3519, allocations: 0 / 493.3 MB, free: 7.613 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.04855/0.4005, allocations: 19.28 MB / 0.5006 GB, free: 4.191 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.4005, allocations: 12.03 kB / 0.5006 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001278/0.4018, allocations: 0.4918 MB / 0.5011 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00502/0.4068, allocations: 1.631 MB / 0.5027 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0428/0.4496, allocations: 18.08 MB / 0.5203 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004703/0.4501, allocations: 361.9 kB / 0.5207 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008629/0.451, allocations: 324 kB / 0.521 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.4629, allocations: 6.495 MB / 0.5273 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.919e-05/0.4629, allocations: 3.938 kB / 0.5273 GB, free: 8.469 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004326/0.4634, allocations: 148 kB / 0.5274 GB, free: 8.324 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.666e-05/0.4634, allocations: 80 kB / 0.5275 GB, free: 8.246 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009508/0.4729, allocations: 5.123 MB / 0.5325 GB, free: 3.113 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4853/0.9583, allocations: 33.54 MB / 0.5653 GB, free: 69.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006081/0.9643, allocations: 4.17 MB / 0.5694 GB, free: 65.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003236/0.9676, allocations: 2.468 MB / 0.5718 GB, free: 63.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.644e-05/0.9677, allocations: 17.31 kB / 0.5718 GB, free: 63.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.329e-05/0.9677, allocations: 74.38 kB / 0.5719 GB, free: 63 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.256e-06/0.9677, allocations: 0 / 0.5719 GB, free: 63 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01571/0.9834, allocations: 7.511 MB / 0.5792 GB, free: 56.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002431/0.9837, allocations: 0.9824 MB / 0.5802 GB, free: 54.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06555/1.049, allocations: 35.77 MB / 0.6151 GB, free: 19.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005709/1.05, allocations: 65.7 kB / 0.6151 GB, free: 19.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01179/1.062, allocations: 7.495 MB / 0.6225 GB, free: 11.76 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/1.062, allocations: 0.5754 MB / 0.623 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007828/1.063, allocations: 427.4 kB / 0.6234 GB, free: 10.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.378e-05/1.063, allocations: 308.7 kB / 0.6237 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002866/1.066, allocations: 1.971 MB / 0.6257 GB, free: 8.559 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003131/1.069, allocations: 2.857 MB / 0.6284 GB, free: 5.379 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005321/1.075, allocations: 4.209 MB / 0.6326 GB, free: 0.957 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/1.075, allocations: 4 kB / 0.6326 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01558/1.09, allocations: 6.088 MB / 0.6385 GB, free: 10.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/1.09, allocations: 15.28 kB / 0.6385 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/1.09, allocations: 20.94 kB / 0.6385 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/1.091, allocations: 356.4 kB / 0.6389 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002309/1.093, allocations: 0.702 MB / 0.6396 GB, free: 9.758 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005974/1.099, allocations: 4.5 MB / 0.644 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0078/1.107, allocations: 0.6662 MB / 0.6446 GB, free: 4.562 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/1.108, allocations: 76 kB / 0.6447 GB, free: 4.488 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.0162/1.124, allocations: 8.122 MB / 0.6526 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006508/1.13, allocations: 1.471 MB / 0.654 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01462/1.145, allocations: 6.017 MB / 0.6599 GB, free: 4.855 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/1.145, allocations: 18.16 kB / 0.6599 GB, free: 4.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/1.145, allocations: 0 / 0.6599 GB, free: 4.84 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/1.145, allocations: 11.91 kB / 0.66 GB, free: 4.828 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04908/1.194, allocations: 18.77 MB / 0.6783 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/1.194, allocations: 0 / 0.6783 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001927/1.196, allocations: 0.5655 MB / 0.6788 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008958/1.197, allocations: 290.3 kB / 0.6791 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/1.197, allocations: 43.98 kB / 0.6792 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005144/1.202, allocations: 3.923 MB / 0.683 GB, free: 13.08 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.202, allocations: 0 / 0.683 GB, free: 13.08 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01842/1.221, allocations: 7.696 MB / 0.6905 GB, free: 5.348 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01508/1.236, allocations: 4.393 MB / 0.6948 GB, free: 0.9648 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005122/1.241, allocations: 51.98 kB / 0.6948 GB, free: 0.9141 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007661/1.248, allocations: 0.6552 MB / 0.6955 GB, free: 264 kB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00112/1.25, allocations: 440.6 kB / 0.6959 GB, free: 15.83 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/1.25, allocations: 44 kB / 0.6959 GB, free: 15.79 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05799/1.308, allocations: 25.59 MB / 0.7209 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.51e-07/1.308, allocations: 0 / 0.7209 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01282/1.321, allocations: 1.861 MB / 0.7227 GB, free: 4.477 MB / 0.5294 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.02125/1.342, allocations: 8.641 MB / 0.7312 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008675/1.35, allocations: 4.403 MB / 0.7355 GB, free: 7.523 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/1.35, allocations: 5.844 kB / 0.7355 GB, free: 7.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004148/1.355, allocations: 2.225 MB / 0.7377 GB, free: 5.277 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0199/1.374, allocations: 2.104 MB / 0.7397 GB, free: 3.191 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9402/2.315, allocations: 226.5 MB / 0.9609 GB, free: 158.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01694/2.332, allocations: 10.17 MB / 0.9708 GB, free: 157.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01437/2.346, allocations: 7.725 MB / 0.9783 GB, free: 156.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01213/2.358, allocations: 6.078 MB / 0.9843 GB, free: 153.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.784e-06/2.358, allocations: 0 / 0.9843 GB, free: 153.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6942/3.052, allocations: 332.4 MB / 1.309 GB, free: 53.46 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 85.77/88.83, allocations: 9.297 kB / 1.309 GB, free: 53.46 MB / 0.5607 GB " [Timeout remaining time 571] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/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) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 102.72186892712489]