Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 119.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 200.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1025, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2079/0.3104, allocations: 10.14 MB / 436.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004951/0.3153, allocations: 3.636 MB / 440.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001162/0.3165, allocations: 33.94 kB / 440.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003148/0.3196, allocations: 1.19 MB / 441.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.3215, allocations: 0.6869 MB / 442 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001456/0.3229, allocations: 490.5 kB / 442.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008374/0.3313, allocations: 7.333 MB / 449.8 MB, free: 40 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005277/0.3366, allocations: 3.317 MB / 453.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006221/0.3428, allocations: 2.92 MB / 456 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006075/0.3489, allocations: 2.984 MB / 459 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002234/0.3511, allocations: 0.6814 MB / 459.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002952/0.3541, allocations: 0.7189 MB / 460.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006028/0.3601, allocations: 5.839 MB / 466.3 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01244/0.3725, allocations: 7.186 MB / 473.4 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02857/0.4011, allocations: 25.01 MB / 498.5 MB, free: 8.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4011, allocations: 0 / 498.5 MB, free: 8.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4011, allocations: 0 / 498.5 MB, free: 8.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007148/0.4018, allocations: 0 / 498.5 MB, free: 8.852 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.04959/0.4514, allocations: 19.24 MB / 0.5056 GB, free: 5.457 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.4515, allocations: 12.03 kB / 0.5056 GB, free: 5.445 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001583/0.453, allocations: 0.4918 MB / 0.5061 GB, free: 4.941 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005417/0.4585, allocations: 1.642 MB / 0.5077 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04049/0.499, allocations: 17.91 MB / 0.5251 GB, free: 1.305 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004486/0.4994, allocations: 328.2 kB / 0.5255 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009201/0.5003, allocations: 335.9 kB / 0.5258 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.5136, allocations: 6.495 MB / 0.5321 GB, free: 9.926 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.313e-05/0.5136, allocations: 4 kB / 0.5321 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004474/0.5141, allocations: 144 kB / 0.5323 GB, free: 9.781 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-05/0.5141, allocations: 80 kB / 0.5323 GB, free: 9.703 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009646/0.5238, allocations: 5.135 MB / 0.5374 GB, free: 4.559 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06601/0.5898, allocations: 33.45 MB / 0.57 GB, free: 2.812 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008315/0.5981, allocations: 4.173 MB / 0.5741 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004593/0.6027, allocations: 2.466 MB / 0.5765 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.6028, allocations: 33.23 kB / 0.5765 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.517e-05/0.6029, allocations: 66.31 kB / 0.5766 GB, free: 12.15 MB / 494.1 MB Notification: Performance of pre-optimization done (n=156): time 3.817e-06/0.6029, allocations: 0 / 0.5766 GB, free: 12.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=156): time 0.02008/0.623, allocations: 7.591 MB / 0.584 GB, free: 4.512 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005525/0.6236, allocations: 0.9824 MB / 0.585 GB, free: 3.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5068/1.13, allocations: 35.88 MB / 0.62 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004747/1.131, allocations: 64.52 kB / 0.6201 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.01269/1.143, allocations: 7.531 MB / 0.6274 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009165/1.144, allocations: 0.5738 MB / 0.628 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009829/1.145, allocations: 429.3 kB / 0.6284 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 8.718e-05/1.145, allocations: 303 kB / 0.6287 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004045/1.15, allocations: 1.974 MB / 0.6306 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/1.154, allocations: 2.855 MB / 0.6334 GB, free: 121 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007394/1.162, allocations: 4.208 MB / 0.6375 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.122e-05/1.162, allocations: 3.875 kB / 0.6375 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01706/1.179, allocations: 6.096 MB / 0.6435 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/1.179, allocations: 12.94 kB / 0.6435 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/1.179, allocations: 15.28 kB / 0.6435 GB, free: 117.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/1.18, allocations: 370.8 kB / 0.6438 GB, free: 117.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002409/1.182, allocations: 0.6957 MB / 0.6445 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004851/1.187, allocations: 4.61 MB / 0.649 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007515/1.195, allocations: 0.6604 MB / 0.6497 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006144/1.195, allocations: 81.94 kB / 0.6498 GB, free: 114.8 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.0132/1.209, allocations: 8.143 MB / 0.6577 GB, free: 112.7 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004791/1.213, allocations: 1.476 MB / 0.6591 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/1.226, allocations: 6.025 MB / 0.665 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/1.226, allocations: 15.38 kB / 0.665 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/1.226, allocations: 2.625 kB / 0.665 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/1.226, allocations: 7.969 kB / 0.6651 GB, free: 109.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03881/1.265, allocations: 18.58 MB / 0.6832 GB, free: 99.51 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/1.265, allocations: 0 / 0.6832 GB, free: 99.51 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/1.267, allocations: 0.5659 MB / 0.6838 GB, free: 99.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007844/1.267, allocations: 288.8 kB / 0.684 GB, free: 99.19 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/1.268, allocations: 43.89 kB / 0.6841 GB, free: 99.16 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00361/1.271, allocations: 4.033 MB / 0.688 GB, free: 96.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.271, allocations: 1.188 kB / 0.688 GB, free: 96.2 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/1.288, allocations: 7.706 MB / 0.6955 GB, free: 92.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01323/1.301, allocations: 4.272 MB / 0.6997 GB, free: 90.43 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004635/1.306, allocations: 51.61 kB / 0.6998 GB, free: 90.39 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006494/1.312, allocations: 0.6599 MB / 0.7004 GB, free: 90.09 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007939/1.313, allocations: 432.5 kB / 0.7008 GB, free: 89.88 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/1.313, allocations: 35.44 kB / 0.7008 GB, free: 89.87 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.04622/1.359, allocations: 25.67 MB / 0.7259 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3e-07/1.359, allocations: 0 / 0.7259 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008948/1.368, allocations: 1.846 MB / 0.7277 GB, free: 63.06 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.01622/1.384, allocations: 8.646 MB / 0.7362 GB, free: 54.56 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.006802/1.391, allocations: 4.401 MB / 0.7405 GB, free: 50.16 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.391, allocations: 5.969 kB / 0.7405 GB, free: 50.16 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003183/1.394, allocations: 2.209 MB / 0.7426 GB, free: 47.93 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01476/1.409, allocations: 2.107 MB / 0.7447 GB, free: 45.86 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6515/2.061, allocations: 226.3 MB / 0.9657 GB, free: 81.57 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01555/2.076, allocations: 10.19 MB / 0.9757 GB, free: 71.38 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.0135/2.09, allocations: 7.692 MB / 0.9832 GB, free: 63.72 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01281/2.103, allocations: 6.099 MB / 0.9891 GB, free: 57.62 MB / 0.5607 GB Notification: Performance of SimCode: time 2.164e-06/2.103, allocations: 0 / 0.9891 GB, free: 57.62 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9043/3.007, allocations: 331.1 MB / 1.312 GB, free: 131 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 110/113, allocations: 5.422 kB / 1.312 GB, free: 131 MB / 0.5763 GB " [Timeout remaining time 547] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 125.92928949603811]