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.0007873/0.0007873, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008356/0.0008356, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8822/0.8822, allocations: 177.1 MB / 204.3 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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 1.583e-06/1.583e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.809e-05/1.968e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.006706/0.006726, allocations: 8.772 MB / 333.3 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003429/0.01015, allocations: 3.357 MB / 336.7 MB, free: 3.762 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/0.0106, allocations: 31.81 kB / 336.7 MB, free: 3.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001573/0.01217, allocations: 1.155 MB / 337.9 MB, free: 2.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000803/0.01297, allocations: 0.707 MB / 338.6 MB, free: 1.859 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007287/0.0137, allocations: 0.4892 MB / 339.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004543/0.01824, allocations: 7.502 MB / 346.6 MB, free: 9.852 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002294/0.02054, allocations: 2.143 MB / 348.7 MB, free: 7.633 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004453/0.02499, allocations: 4.192 MB / 352.9 MB, free: 3.434 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.02783, allocations: 2.979 MB / 355.9 MB, free: 460 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009502/0.02878, allocations: 0.6797 MB / 356.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006817/0.02946, allocations: 0.7225 MB / 357.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002444/0.0319, allocations: 5.916 MB / 363.2 MB, free: 9.117 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003504/0.03541, allocations: 4.192 MB / 367.4 MB, free: 4.914 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.04888, allocations: 24.44 MB / 391.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.04888, allocations: 0 / 391.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.04889, allocations: 0 / 391.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004123/0.0493, allocations: 0 / 391.8 MB, free: 12.41 MB / 362.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.03064/0.07994, allocations: 19.16 MB / 411 MB, free: 9.113 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.07998, allocations: 12.03 kB / 411 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001037/0.08102, allocations: 0.4918 MB / 411.5 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004155/0.08518, allocations: 1.639 MB / 413.1 MB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02865/0.1138, allocations: 18.12 MB / 431.3 MB, free: 4.758 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003169/0.1141, allocations: 361.9 kB / 431.6 MB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006342/0.1148, allocations: 320 kB / 431.9 MB, free: 4.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0082/0.123, allocations: 8.009 MB / 439.9 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.033e-05/0.123, allocations: 0 / 439.9 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002817/0.1233, allocations: 144 kB / 440.1 MB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-05/0.1233, allocations: 88 kB / 440.2 MB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007308/0.1307, allocations: 5.115 MB / 445.3 MB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3027/0.4333, allocations: 30.73 MB / 476 MB, free: 79.35 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003757/0.4371, allocations: 4.172 MB / 480.2 MB, free: 75.27 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002049/0.4391, allocations: 2.478 MB / 482.6 MB, free: 72.81 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.69e-05/0.4392, allocations: 17.31 kB / 482.7 MB, free: 72.79 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.4392, allocations: 63.88 kB / 482.7 MB, free: 72.72 MB / 410.8 MB Notification: Performance of pre-optimization done (n=156): time 3.276e-06/0.4392, allocations: 0 / 482.7 MB, free: 72.72 MB / 410.8 MB Notification: Performance of matching and sorting (n=156): time 0.008709/0.4479, allocations: 7.524 MB / 490.2 MB, free: 65.91 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.448, allocations: 0.9824 MB / 491.2 MB, free: 64.7 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03243/0.4805, allocations: 35.9 MB / 0.5148 GB, free: 28.89 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003494/0.4808, allocations: 61.7 kB / 0.5148 GB, free: 28.83 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004691/0.4855, allocations: 7.542 MB / 0.5222 GB, free: 21.45 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003072/0.4858, allocations: 0.5614 MB / 0.5227 GB, free: 20.96 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000402/0.4862, allocations: 423.4 kB / 0.5232 GB, free: 20.54 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.135e-05/0.4862, allocations: 301.1 kB / 0.5234 GB, free: 20.24 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.488, allocations: 1.967 MB / 0.5254 GB, free: 18.27 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001997/0.49, allocations: 3.765 MB / 0.529 GB, free: 13.96 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0033/0.4933, allocations: 4.208 MB / 0.5331 GB, free: 9.539 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.4933, allocations: 8 kB / 0.5332 GB, free: 9.531 MB / 410.8 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.006788/0.5001, allocations: 6.095 MB / 0.5391 GB, free: 3.414 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.5001, allocations: 12 kB / 0.5391 GB, free: 3.402 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.5001, allocations: 16 kB / 0.5391 GB, free: 3.387 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005768/0.5007, allocations: 368.9 kB / 0.5395 GB, free: 3.027 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.5018, allocations: 0.6981 MB / 0.5402 GB, free: 2.328 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.5049, allocations: 4.426 MB / 0.5445 GB, free: 13.81 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002399/0.5073, allocations: 0.6654 MB / 0.5451 GB, free: 13.21 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.5074, allocations: 76 kB / 0.5452 GB, free: 13.13 MB / 426.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.006198/0.5136, allocations: 8.146 MB / 0.5532 GB, free: 4.988 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/0.5148, allocations: 1.478 MB / 0.5546 GB, free: 3.496 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006038/0.5209, allocations: 6.034 MB / 0.5605 GB, free: 13.45 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.5209, allocations: 16 kB / 0.5605 GB, free: 13.43 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.5209, allocations: 0 / 0.5605 GB, free: 13.43 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.5209, allocations: 7.969 kB / 0.5605 GB, free: 13.42 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/0.5377, allocations: 16.73 MB / 0.5769 GB, free: 12.68 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.5378, allocations: 0 / 0.5769 GB, free: 12.68 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.5388, allocations: 0.5616 MB / 0.5774 GB, free: 12.11 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004355/0.5392, allocations: 288.7 kB / 0.5777 GB, free: 11.83 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.411e-05/0.5393, allocations: 39.98 kB / 0.5777 GB, free: 11.79 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002828/0.5421, allocations: 3.882 MB / 0.5815 GB, free: 7.812 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5421, allocations: 4.031 kB / 0.5815 GB, free: 7.809 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007676/0.5498, allocations: 7.694 MB / 0.589 GB, free: 80 kB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005248/0.555, allocations: 4.393 MB / 0.5933 GB, free: 11.7 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/0.5563, allocations: 47.92 kB / 0.5934 GB, free: 11.65 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/0.5585, allocations: 0.6645 MB / 0.594 GB, free: 10.98 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/0.5591, allocations: 440.6 kB / 0.5944 GB, free: 10.55 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.069e-05/0.5592, allocations: 44 kB / 0.5945 GB, free: 10.51 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.02905/0.5882, allocations: 25.66 MB / 0.6195 GB, free: 0.9219 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.5882, allocations: 0 / 0.6195 GB, free: 0.9219 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.1477/0.736, allocations: 1.843 MB / 0.6213 GB, free: 166.4 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.01307/0.749, allocations: 8.664 MB / 0.6298 GB, free: 165.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.004368/0.7534, allocations: 4.402 MB / 0.6341 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/0.7534, allocations: 4.781 kB / 0.6341 GB, free: 164.1 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001916/0.7553, allocations: 2.212 MB / 0.6363 GB, free: 163.5 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/0.7653, allocations: 2.101 MB / 0.6383 GB, free: 162.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.827/2.592, allocations: 229.1 MB / 0.862 GB, free: 130.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01189/2.604, allocations: 9.807 MB / 0.8716 GB, free: 120.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01005/2.614, allocations: 7.693 MB / 0.8791 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009075/2.623, allocations: 6.093 MB / 0.885 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of SimCode: time 1.643e-06/2.623, allocations: 0 / 0.885 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6204/3.244, allocations: 340.4 MB / 1.217 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.96/35.2, allocations: 7.844 kB / 1.217 GB, free: 123.9 MB / 0.5105 GB " [Timeout remaining time 625] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins/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: 44.48231976944953]