Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001343/0.001343, allocations: 119.9 kB / 17.79 MB, free: 5.137 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.001224/0.001224, allocations: 185.2 kB / 20.73 MB, free: 2.207 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.361/1.361, allocations: 225.6 MB / 249.1 MB, free: 3.582 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_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 55.91 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1088, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008047/0.1169, allocations: 6.036 MB / 423.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003712/0.1206, allocations: 2.159 MB / 426 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003398/0.1209, allocations: 15.94 kB / 426 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.1223, allocations: 0.6263 MB / 426.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007501/0.1231, allocations: 413.8 kB / 427 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008679/0.1239, allocations: 402.7 kB / 427.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.1254, allocations: 1.306 MB / 428.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005452/0.126, allocations: 345.8 kB / 429 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005747/0.1266, allocations: 0.4945 MB / 429.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007105/0.1273, allocations: 0.6033 MB / 430.1 MB, free: 160 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.1274, allocations: 116 kB / 430.3 MB, free: 44 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.1278, allocations: 176 kB / 430.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005675/0.1283, allocations: 0.6466 MB / 431.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008909/0.1292, allocations: 0.8895 MB / 432 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002833/0.1321, allocations: 2.638 MB / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.1321, allocations: 4 kB / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1321, allocations: 0 / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.997e-05/0.1321, allocations: 0 / 434.6 MB, free: 11.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004178/0.1363, allocations: 2.43 MB / 437 MB, free: 9.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1363, allocations: 8.031 kB / 437 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.1365, allocations: 106.7 kB / 437.1 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003159/0.1368, allocations: 223.5 kB / 437.4 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.1396, allocations: 1.689 MB / 439.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.1398, allocations: 108.7 kB / 439.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.1399, allocations: 60 kB / 439.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.1414, allocations: 0.8259 MB / 440 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.1414, allocations: 0 / 440 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.546e-05/0.1415, allocations: 31.94 kB / 440.1 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1415, allocations: 16 kB / 440.1 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.1426, allocations: 0.5516 MB / 440.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006208/0.1488, allocations: 3.997 MB / 444.6 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.1501, allocations: 0.4958 MB / 445.1 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007627/0.1509, allocations: 345.2 kB / 445.5 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.1509, allocations: 4.281 kB / 445.5 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.1509, allocations: 46.78 kB / 445.5 MB, free: 420 kB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.703e-06/0.1509, allocations: 0 / 445.5 MB, free: 420 kB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.2018/0.3527, allocations: 0.9397 MB / 446.5 MB, free: 29.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.3528, allocations: 269 kB / 446.7 MB, free: 29.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004081/0.3568, allocations: 3.145 MB / 449.9 MB, free: 29.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.912e-05/0.3569, allocations: 32.33 kB / 449.9 MB, free: 29.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005978/0.3575, allocations: 0.8622 MB / 450.8 MB, free: 28.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.938e-05/0.3576, allocations: 130 kB / 450.9 MB, free: 28.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3578, allocations: 93.27 kB / 451 MB, free: 28.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.678e-05/0.3578, allocations: 324.6 kB / 451.3 MB, free: 28.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00044/0.3583, allocations: 209.2 kB / 451.5 MB, free: 28.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005358/0.3588, allocations: 396.2 kB / 451.9 MB, free: 28.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008443/0.3596, allocations: 0.5147 MB / 452.4 MB, free: 27.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3596, allocations: 1.375 kB / 452.4 MB, free: 27.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001702/0.3613, allocations: 0.7877 MB / 453.2 MB, free: 27.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3614, allocations: 8.828 kB / 453.2 MB, free: 27.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3614, allocations: 7.75 kB / 453.2 MB, free: 27.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003436/0.3617, allocations: 63.38 kB / 453.3 MB, free: 27.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005139/0.3622, allocations: 120.2 kB / 453.4 MB, free: 27.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.3637, allocations: 1.795 MB / 455.2 MB, free: 25.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006748/0.3643, allocations: 78.97 kB / 455.3 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.3644, allocations: 18.62 kB / 455.3 MB, free: 25.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008993/0.3653, allocations: 0.6571 MB / 455.9 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002259/0.3655, allocations: 188.5 kB / 456.1 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.3658, allocations: 215.3 kB / 456.3 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.3658, allocations: 3.312 kB / 456.3 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3658, allocations: 5.625 kB / 456.3 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3658, allocations: 2.062 kB / 456.3 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.3692, allocations: 2.157 MB / 458.5 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3692, allocations: 1.344 kB / 458.5 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000373/0.3696, allocations: 91.3 kB / 458.6 MB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001663/0.3698, allocations: 55.34 kB / 458.6 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.3698, allocations: 11.67 kB / 458.7 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.3709, allocations: 1.748 MB / 460.4 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3709, allocations: 5.688 kB / 460.4 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.3726, allocations: 0.9774 MB / 461.4 MB, free: 22.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008346/0.3734, allocations: 447 kB / 461.8 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3736, allocations: 17.31 kB / 461.8 MB, free: 22.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005032/0.3741, allocations: 54.77 kB / 461.9 MB, free: 22.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.3742, allocations: 40.23 kB / 461.9 MB, free: 22.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.3742, allocations: 13.05 kB / 461.9 MB, free: 22.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002779/0.377, allocations: 2.244 MB / 464.2 MB, free: 21.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.377, allocations: 0 / 464.2 MB, free: 21.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008311/0.3778, allocations: 258.2 kB / 464.4 MB, free: 21.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.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 (29): * Single equations (assignments): 28 * 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 {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003413/0.3812, allocations: 1.918 MB / 466.4 MB, free: 20.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.3825, allocations: 0.5856 MB / 466.9 MB, free: 19.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3825, allocations: 0.875 kB / 466.9 MB, free: 19.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005771/0.3831, allocations: 355.9 kB / 467.3 MB, free: 19.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.3843, allocations: 295.1 kB / 467.6 MB, free: 19.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02372/0.408, allocations: 19.76 MB / 487.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007964/0.4088, allocations: 1.497 MB / 488.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006239/0.4094, allocations: 296 kB / 489.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006017/0.41, allocations: 0.6399 MB / 489.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of SimCode: time 1.213e-06/0.41, allocations: 4 kB / 489.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08104/0.4911, allocations: 36.43 MB / 0.5139 GB, free: 172 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/15.35, allocations: 11.44 kB / 0.5139 GB, free: 164 kB / 398.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.245500132907182]