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.001258/0.001258, allocations: 124.7 kB / 17.79 MB, free: 5.246 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.001269/0.001269, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.408/1.408, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.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.001485/0.001485, allocations: 51.92 kB / 365.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1023, allocations: 52.15 MB / 417.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01181/0.1141, allocations: 10.1 MB / 427.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005408/0.1195, allocations: 3.478 MB / 431.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007131/0.1202, allocations: 23.88 kB / 431.4 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002436/0.1227, allocations: 1.183 MB / 432.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.124, allocations: 0.649 MB / 433.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1252, allocations: 486.7 kB / 433.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008618/0.1338, allocations: 7.327 MB / 441 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004154/0.1379, allocations: 3.306 MB / 444.3 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2027/0.3407, allocations: 2.85 MB / 447.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004079/0.3447, allocations: 2.98 MB / 450.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001872/0.3466, allocations: 0.6763 MB / 450.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002615/0.3492, allocations: 0.7282 MB / 451.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006024/0.3553, allocations: 5.82 MB / 457.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.017/0.3723, allocations: 7.189 MB / 464.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02907/0.4013, allocations: 24.97 MB / 489.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.056e-06/0.4013, allocations: 0 / 489.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4013, allocations: 0 / 489.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000765/0.4021, allocations: 0 / 489.5 MB, free: 12.84 MB / 382.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.06153/0.4636, allocations: 19.18 MB / 0.4968 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.4637, allocations: 16.03 kB / 0.4968 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001612/0.4653, allocations: 0.4918 MB / 0.4973 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006703/0.472, allocations: 1.634 MB / 0.4989 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04813/0.5201, allocations: 17.87 MB / 0.5163 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005612/0.5207, allocations: 339.7 kB / 0.5167 GB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001305/0.522, allocations: 324 kB / 0.517 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01565/0.5376, allocations: 6.489 MB / 0.5233 GB, free: 0 / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.77e-05/0.5377, allocations: 3.469 kB / 0.5233 GB, free: 0 / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008949/0.5386, allocations: 146.2 kB / 0.5234 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-05/0.5387, allocations: 87.94 kB / 0.5235 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01162/0.5503, allocations: 5.119 MB / 0.5285 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08345/0.6337, allocations: 33.44 MB / 0.5612 GB, free: 9.227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008367/0.6421, allocations: 4.19 MB / 0.5653 GB, free: 5.121 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004796/0.6469, allocations: 2.479 MB / 0.5677 GB, free: 2.648 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.647, allocations: 17.31 kB / 0.5677 GB, free: 2.633 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.6471, allocations: 65.36 kB / 0.5678 GB, free: 2.562 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.869e-06/0.6471, allocations: 0 / 0.5678 GB, free: 2.562 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.02195/0.6691, allocations: 7.588 MB / 0.5752 GB, free: 10.94 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005632/0.6697, allocations: 0.9864 MB / 0.5761 GB, free: 9.719 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0925/0.7622, allocations: 35.76 MB / 0.6111 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005958/0.7628, allocations: 65.7 kB / 0.6111 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.01696/0.7797, allocations: 7.512 MB / 0.6185 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009658/0.7807, allocations: 0.5751 MB / 0.619 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008748/0.7816, allocations: 427.4 kB / 0.6194 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.7817, allocations: 310 kB / 0.6197 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003695/0.7854, allocations: 1.971 MB / 0.6217 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004553/0.7899, allocations: 2.858 MB / 0.6245 GB, free: 8.09 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007618/0.7975, allocations: 4.207 MB / 0.6286 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/0.7976, allocations: 4.875 kB / 0.6286 GB, free: 3.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.4217/1.219, allocations: 6.089 MB / 0.6345 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/1.219, allocations: 11.81 kB / 0.6345 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/1.219, allocations: 15.84 kB / 0.6345 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/1.22, allocations: 365.8 kB / 0.6349 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002536/1.223, allocations: 0.6942 MB / 0.6356 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005473/1.228, allocations: 4.604 MB / 0.6401 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009171/1.238, allocations: 0.6701 MB / 0.6407 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005705/1.238, allocations: 79.22 kB / 0.6408 GB, free: 150.4 MB / 0.5138 GB 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.01535/1.253, allocations: 8.125 MB / 0.6487 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006187/1.26, allocations: 1.468 MB / 0.6502 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/1.273, allocations: 6.011 MB / 0.656 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/1.273, allocations: 18.56 kB / 0.656 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/1.273, allocations: 0.6562 kB / 0.656 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/1.273, allocations: 7.453 kB / 0.6561 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04893/1.322, allocations: 18.54 MB / 0.6742 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/1.322, allocations: 2.5 kB / 0.6742 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/1.323, allocations: 0.5642 MB / 0.6747 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006989/1.324, allocations: 294.3 kB / 0.675 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/1.324, allocations: 39.98 kB / 0.675 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003479/1.328, allocations: 4.026 MB / 0.679 GB, free: 135.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.328, allocations: 5.062 kB / 0.679 GB, free: 135.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.342, allocations: 7.698 MB / 0.6865 GB, free: 128.1 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01485/1.356, allocations: 4.268 MB / 0.6907 GB, free: 123.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00564/1.362, allocations: 48 kB / 0.6907 GB, free: 123.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007458/1.37, allocations: 0.6591 MB / 0.6913 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009777/1.37, allocations: 432.7 kB / 0.6918 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001712/1.371, allocations: 47.92 kB / 0.6918 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05247/1.423, allocations: 25.59 MB / 0.7168 GB, free: 97.14 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.4e-07/1.423, allocations: 0 / 0.7168 GB, free: 97.14 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01236/1.435, allocations: 1.838 MB / 0.7186 GB, free: 95.3 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.01995/1.455, allocations: 8.643 MB / 0.727 GB, free: 86.83 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007426/1.463, allocations: 4.406 MB / 0.7313 GB, free: 82.42 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.463, allocations: 5.219 kB / 0.7313 GB, free: 82.41 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003246/1.466, allocations: 2.217 MB / 0.7335 GB, free: 80.19 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02651/1.493, allocations: 2.119 MB / 0.7356 GB, free: 78.12 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7418/2.234, allocations: 226.4 MB / 0.9566 GB, free: 93.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02245/2.257, allocations: 10.18 MB / 0.9666 GB, free: 83.61 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01958/2.276, allocations: 8.145 MB / 0.9745 GB, free: 75.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01785/2.294, allocations: 6.076 MB / 0.9805 GB, free: 69.42 MB / 0.545 GB Notification: Performance of SimCode: time 1.743e-06/2.294, allocations: 0 / 0.9805 GB, free: 69.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8969/3.191, allocations: 330.7 MB / 1.303 GB, free: 129.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 88.54/91.73, allocations: 15.53 kB / 1.303 GB, free: 129.2 MB / 0.545 GB " [Timeout remaining time 568] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 106.27051231032237]