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.001555/0.001555, allocations: 115.6 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.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.001689/0.001689, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001625/0.001625, allocations: 43.94 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2548, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01397/0.2687, allocations: 10.17 MB / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006523/0.2753, allocations: 3.668 MB / 445 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009722/0.2762, allocations: 31.81 kB / 445 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003031/0.2793, allocations: 1.19 MB / 446.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001843/0.2811, allocations: 0.688 MB / 446.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.2824, allocations: 498.5 kB / 447.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008734/0.2911, allocations: 7.336 MB / 454.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003324/0.2945, allocations: 2.096 MB / 456.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003795/0.2982, allocations: 2.925 MB / 459.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004305/0.3026, allocations: 2.989 MB / 462.7 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001503/0.3041, allocations: 0.6797 MB / 463.4 MB, free: 6.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.3059, allocations: 0.7187 MB / 464.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005532/0.3115, allocations: 5.833 MB / 469.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01005/0.3215, allocations: 7.195 MB / 477.1 MB, free: 8.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02939/0.3509, allocations: 25.01 MB / 0.4904 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.3509, allocations: 4 kB / 0.4904 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3509, allocations: 0 / 0.4904 GB, free: 15.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008135/0.3517, allocations: 3.984 kB / 0.4904 GB, free: 15.5 MB / 414.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.05031/0.402, allocations: 19.32 MB / 0.5092 GB, free: 12.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.4021, allocations: 8.031 kB / 0.5093 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00133/0.4034, allocations: 0.4957 MB / 0.5097 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005072/0.4085, allocations: 1.637 MB / 0.5113 GB, free: 9.875 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04387/0.4524, allocations: 18.11 MB / 0.529 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004525/0.4528, allocations: 357.9 kB / 0.5294 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008073/0.4536, allocations: 324 kB / 0.5297 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.4656, allocations: 6.503 MB / 0.536 GB, free: 288 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.936e-05/0.4656, allocations: 3.938 kB / 0.536 GB, free: 284 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004264/0.466, allocations: 144 kB / 0.5362 GB, free: 140 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-05/0.4661, allocations: 84 kB / 0.5362 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4002/0.8663, allocations: 5.122 MB / 0.5412 GB, free: 80.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05499/0.9213, allocations: 33.55 MB / 0.574 GB, free: 54.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006265/0.9275, allocations: 4.176 MB / 0.5781 GB, free: 50.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003409/0.9309, allocations: 2.467 MB / 0.5805 GB, free: 48.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.372e-05/0.931, allocations: 26.52 kB / 0.5805 GB, free: 48.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.287e-05/0.9311, allocations: 59.88 kB / 0.5806 GB, free: 48.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.837e-06/0.9311, allocations: 0 / 0.5806 GB, free: 48.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01868/0.9498, allocations: 7.519 MB / 0.5879 GB, free: 41.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/0.95, allocations: 0.9824 MB / 0.5889 GB, free: 40.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05914/1.009, allocations: 35.89 MB / 0.6239 GB, free: 4.242 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005032/1.01, allocations: 61.7 kB / 0.624 GB, free: 4.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01329/1.023, allocations: 7.543 MB / 0.6314 GB, free: 12.81 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.024, allocations: 0.5725 MB / 0.6319 GB, free: 12.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009265/1.025, allocations: 423.4 kB / 0.6323 GB, free: 11.88 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/1.025, allocations: 309 kB / 0.6326 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003735/1.029, allocations: 1.971 MB / 0.6345 GB, free: 9.598 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004633/1.033, allocations: 2.857 MB / 0.6373 GB, free: 6.418 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007297/1.041, allocations: 4.204 MB / 0.6414 GB, free: 2.004 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/1.041, allocations: 6.516 kB / 0.6414 GB, free: 2 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01567/1.056, allocations: 6.1 MB / 0.6474 GB, free: 11.88 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/1.056, allocations: 12 kB / 0.6474 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/1.056, allocations: 16 kB / 0.6474 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/1.058, allocations: 371.3 kB / 0.6478 GB, free: 11.49 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/1.06, allocations: 0.698 MB / 0.6485 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006089/1.066, allocations: 4.494 MB / 0.6528 GB, free: 6.199 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007034/1.073, allocations: 0.6647 MB / 0.6535 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004518/1.074, allocations: 76 kB / 0.6536 GB, free: 5.52 MB / 478.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.01379/1.087, allocations: 8.145 MB / 0.6615 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006026/1.093, allocations: 1.475 MB / 0.663 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/1.108, allocations: 6.027 MB / 0.6688 GB, free: 5.844 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/1.108, allocations: 12 kB / 0.6689 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/1.108, allocations: 3.938 kB / 0.6689 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.727e-05/1.108, allocations: 11.97 kB / 0.6689 GB, free: 5.816 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04391/1.152, allocations: 18.81 MB / 0.6872 GB, free: 2.957 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/1.152, allocations: 3.188 kB / 0.6872 GB, free: 2.957 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.154, allocations: 0.5617 MB / 0.6878 GB, free: 2.395 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/1.155, allocations: 296.6 kB / 0.6881 GB, free: 2.102 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/1.155, allocations: 43.98 kB / 0.6881 GB, free: 2.059 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005095/1.16, allocations: 3.932 MB / 0.692 GB, free: 14.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.16, allocations: 0 / 0.692 GB, free: 14.02 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/1.176, allocations: 7.708 MB / 0.6995 GB, free: 6.277 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01383/1.19, allocations: 4.401 MB / 0.7038 GB, free: 1.887 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00535/1.196, allocations: 40 kB / 0.7038 GB, free: 1.848 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006925/1.202, allocations: 0.6591 MB / 0.7045 GB, free: 1.188 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00105/1.204, allocations: 440.6 kB / 0.7049 GB, free: 0.7578 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001597/1.204, allocations: 44 kB / 0.7049 GB, free: 0.7148 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.05746/1.261, allocations: 25.67 MB / 0.73 GB, free: 7.113 MB / 0.545 GB Notification: Performance of sort global known variables: time 3e-07/1.261, allocations: 0 / 0.73 GB, free: 7.113 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009681/1.271, allocations: 1.85 MB / 0.7318 GB, free: 5.332 MB / 0.545 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.0204/1.291, allocations: 8.647 MB / 0.7402 GB, free: 12.79 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008702/1.3, allocations: 4.405 MB / 0.7446 GB, free: 8.375 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/1.3, allocations: 5.156 kB / 0.7446 GB, free: 8.371 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004203/1.304, allocations: 2.214 MB / 0.7467 GB, free: 6.141 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01696/1.321, allocations: 2.105 MB / 0.7488 GB, free: 4.062 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8329/2.154, allocations: 226.4 MB / 0.9699 GB, free: 182.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01921/2.173, allocations: 10.19 MB / 0.9798 GB, free: 181.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01366/2.187, allocations: 7.693 MB / 0.9873 GB, free: 179.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01206/2.199, allocations: 6.1 MB / 0.9933 GB, free: 175.1 MB / 0.5607 GB Notification: Performance of SimCode: time 1.122e-06/2.199, allocations: 0 / 0.9933 GB, free: 175.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6187/2.818, allocations: 332.8 MB / 1.318 GB, free: 68.68 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 148.2/151.1, allocations: 0.5156 kB / 1.318 GB, free: 68.68 MB / 0.5763 GB " [Timeout remaining time 509] (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: 164.62736883410253]