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.0009043/0.0009043, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001017/0.001017, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9158/0.9158, allocations: 173.4 MB / 200.4 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] 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 1.263e-06/1.263e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.308e-05/2.435e-05, allocations: 6.219 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.007432/0.007456, allocations: 8.72 MB / 327.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004801/0.01226, allocations: 3.193 MB / 330.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008158/0.01307, allocations: 39.75 kB / 330.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.01525, allocations: 1.135 MB / 331.5 MB, free: 9.199 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.0165, allocations: 0.6759 MB / 332.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008516/0.01735, allocations: 0.4888 MB / 332.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005204/0.02255, allocations: 7.502 MB / 340.2 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/0.02462, allocations: 2.143 MB / 342.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004796/0.02942, allocations: 4.176 MB / 346.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004236/0.03365, allocations: 2.979 MB / 349.5 MB, free: 7.113 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001722/0.03537, allocations: 0.6758 MB / 350.1 MB, free: 6.438 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.0367, allocations: 0.7264 MB / 350.9 MB, free: 5.711 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00317/0.03987, allocations: 5.912 MB / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005872/0.04574, allocations: 4.192 MB / 361 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01698/0.06272, allocations: 24.39 MB / 385.4 MB, free: 3.125 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.06273, allocations: 0 / 385.4 MB, free: 3.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.06273, allocations: 3.938 kB / 385.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006871/0.06342, allocations: 0 / 385.4 MB, free: 3.121 MB / 346.7 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.03995/0.1034, allocations: 19.12 MB / 404.5 MB, free: 15.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.1034, allocations: 8.922 kB / 404.5 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001342/0.1048, allocations: 0.4918 MB / 405 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004539/0.1093, allocations: 1.627 MB / 406.6 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03362/0.1429, allocations: 18.08 MB / 424.7 MB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003606/0.1433, allocations: 357.9 kB / 425.1 MB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007054/0.144, allocations: 328 kB / 425.4 MB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01022/0.1542, allocations: 8.013 MB / 433.4 MB, free: 2.266 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/0.1543, allocations: 0 / 433.4 MB, free: 2.266 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003084/0.1546, allocations: 147.9 kB / 433.5 MB, free: 2.121 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.973e-05/0.1546, allocations: 80 kB / 433.6 MB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006998/0.1616, allocations: 5.119 MB / 438.7 MB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3449/0.5065, allocations: 30.71 MB / 469.4 MB, free: 88.94 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004217/0.5108, allocations: 4.165 MB / 473.6 MB, free: 87.05 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002224/0.513, allocations: 2.479 MB / 476.1 MB, free: 84.84 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.603e-05/0.5131, allocations: 17.31 kB / 476.1 MB, free: 84.83 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.5131, allocations: 71.86 kB / 476.2 MB, free: 84.75 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 3.737e-06/0.5131, allocations: 3.469 kB / 476.2 MB, free: 84.75 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.01133/0.5244, allocations: 7.501 MB / 483.7 MB, free: 78.07 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.5246, allocations: 0.9824 MB / 484.7 MB, free: 76.86 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05071/0.5753, allocations: 35.78 MB / 0.5082 GB, free: 41.2 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004385/0.5757, allocations: 61.7 kB / 0.5083 GB, free: 41.14 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007631/0.5833, allocations: 7.508 MB / 0.5156 GB, free: 33.87 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006299/0.584, allocations: 0.5738 MB / 0.5162 GB, free: 33.37 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004597/0.5844, allocations: 423.4 kB / 0.5166 GB, free: 32.95 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.728e-05/0.5845, allocations: 301.1 kB / 0.5169 GB, free: 32.66 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/0.5863, allocations: 1.97 MB / 0.5188 GB, free: 30.69 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/0.5884, allocations: 3.757 MB / 0.5225 GB, free: 26.38 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003476/0.5919, allocations: 4.21 MB / 0.5266 GB, free: 21.96 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.5919, allocations: 15.56 kB / 0.5266 GB, free: 21.95 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01147/0.6034, allocations: 6.099 MB / 0.5326 GB, free: 15.84 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.6034, allocations: 8 kB / 0.5326 GB, free: 15.83 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.6034, allocations: 16 kB / 0.5326 GB, free: 15.81 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000658/0.6041, allocations: 363.7 kB / 0.5329 GB, free: 15.46 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.6053, allocations: 0.6941 MB / 0.5336 GB, free: 14.76 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002884/0.6082, allocations: 4.435 MB / 0.5379 GB, free: 10.24 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005315/0.6135, allocations: 0.6651 MB / 0.5386 GB, free: 9.637 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/0.6137, allocations: 75.94 kB / 0.5387 GB, free: 9.562 MB / 410.8 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.008766/0.6225, allocations: 8.129 MB / 0.5466 GB, free: 1.43 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005237/0.6278, allocations: 1.467 MB / 0.548 GB, free: 15.95 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009886/0.6376, allocations: 6.015 MB / 0.5539 GB, free: 9.922 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.6376, allocations: 16 kB / 0.5539 GB, free: 9.906 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.6377, allocations: 0 / 0.5539 GB, free: 9.906 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.6377, allocations: 7.969 kB / 0.5539 GB, free: 9.898 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03113/0.6688, allocations: 16.7 MB / 0.5702 GB, free: 9.188 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.6688, allocations: 0 / 0.5702 GB, free: 9.188 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.6698, allocations: 0.5655 MB / 0.5708 GB, free: 8.621 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005296/0.6703, allocations: 295.8 kB / 0.5711 GB, free: 8.332 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.648e-05/0.6704, allocations: 39.98 kB / 0.5711 GB, free: 8.293 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003003/0.6734, allocations: 3.879 MB / 0.5749 GB, free: 4.32 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.6734, allocations: 0 / 0.5749 GB, free: 4.32 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/0.6838, allocations: 7.696 MB / 0.5824 GB, free: 12.59 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007936/0.6917, allocations: 4.387 MB / 0.5867 GB, free: 8.215 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002981/0.6947, allocations: 51.98 kB / 0.5867 GB, free: 8.164 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004193/0.6989, allocations: 0.6548 MB / 0.5874 GB, free: 7.512 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006439/0.6995, allocations: 444.5 kB / 0.5878 GB, free: 7.078 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6996, allocations: 43.98 kB / 0.5879 GB, free: 7.035 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.04381/0.7435, allocations: 25.58 MB / 0.6128 GB, free: 13.52 MB / 490.8 MB Notification: Performance of sort global known variables: time 4e-08/0.7435, allocations: 0 / 0.6128 GB, free: 13.52 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009322/0.7528, allocations: 1.847 MB / 0.6146 GB, free: 11.74 MB / 490.8 MB 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.01456/0.7673, allocations: 8.665 MB / 0.6231 GB, free: 3.219 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.1585/0.9259, allocations: 4.393 MB / 0.6274 GB, free: 176.8 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/0.9259, allocations: 8.844 kB / 0.6274 GB, free: 176.7 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002597/0.9285, allocations: 2.213 MB / 0.6296 GB, free: 176.6 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01307/0.9416, allocations: 2.119 MB / 0.6316 GB, free: 175.8 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.803/2.745, allocations: 229.1 MB / 0.8553 GB, free: 124.1 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0155/2.76, allocations: 9.781 MB / 0.8649 GB, free: 114.4 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01073/2.771, allocations: 7.724 MB / 0.8724 GB, free: 106.7 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01076/2.782, allocations: 6.077 MB / 0.8784 GB, free: 100.6 MB / 490.8 MB Notification: Performance of SimCode: time 2.244e-06/2.782, allocations: 4 kB / 0.8784 GB, free: 100.6 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5999/3.382, allocations: 340 MB / 1.21 GB, free: 131.3 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.73/33.11, allocations: 7.391 kB / 1.21 GB, free: 131.3 MB / 0.4949 GB " [Timeout remaining time 627] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 41.97058690711856]