Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001783/0.001783, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.001646/0.001646, allocations: 215 kB / 23.74 MB, free: 4.535 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 7.977 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_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 43.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2594, allocations: 53.38 MB / 431.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008756/0.2682, allocations: 6.128 MB / 437.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003979/0.2722, allocations: 2.326 MB / 439.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005837/0.2727, allocations: 19.88 kB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.2742, allocations: 0.6224 MB / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.2754, allocations: 457.7 kB / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009608/0.2763, allocations: 418.8 kB / 441.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.278, allocations: 1.317 MB / 442.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005798/0.2786, allocations: 303.4 kB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007354/0.2794, allocations: 0.4945 MB / 443.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009209/0.2803, allocations: 0.6149 MB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002163/0.2805, allocations: 120 kB / 443.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003518/0.2808, allocations: 172 kB / 444.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005421/0.2814, allocations: 0.6583 MB / 444.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009949/0.2824, allocations: 0.8894 MB / 445.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002713/0.2851, allocations: 2.65 MB / 448.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2851, allocations: 0 / 448.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2851, allocations: 4 kB / 448.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.502e-05/0.2852, allocations: 0 / 448.3 MB, free: 5.59 MB / 350.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.004367/0.2895, allocations: 2.358 MB / 450.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.2896, allocations: 12.03 kB / 450.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.2897, allocations: 110.7 kB / 450.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003515/0.2901, allocations: 227.5 kB / 451 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002742/0.2928, allocations: 1.639 MB / 452.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.293, allocations: 181.8 kB / 452.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2931, allocations: 67.94 kB / 452.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2946, allocations: 0.8297 MB / 453.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.2946, allocations: 8 kB / 453.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.293e-05/0.2946, allocations: 24 kB / 453.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.2947, allocations: 16 kB / 453.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.2958, allocations: 0.5439 MB / 454.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006438/0.3022, allocations: 3.946 MB / 458.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/0.3035, allocations: 0.5039 MB / 458.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007779/0.3043, allocations: 342.8 kB / 459.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.3043, allocations: 4.281 kB / 459.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.3044, allocations: 38.84 kB / 459.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.675e-06/0.3044, allocations: 0 / 459.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002507/0.3069, allocations: 0.8738 MB / 460 MB, free: 9.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002302/0.3071, allocations: 269 kB / 460.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004618/0.3118, allocations: 3.16 MB / 463.4 MB, free: 6.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.54e-05/0.3118, allocations: 33.7 kB / 463.5 MB, free: 5.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009615/0.3128, allocations: 0.8615 MB / 464.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3129, allocations: 127 kB / 464.4 MB, free: 5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3131, allocations: 90.16 kB / 464.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3132, allocations: 330 kB / 464.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000478/0.3137, allocations: 208.9 kB / 465 MB, free: 4.371 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006365/0.3144, allocations: 397.3 kB / 465.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.3154, allocations: 0.5243 MB / 466 MB, free: 3.336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3154, allocations: 4 kB / 466 MB, free: 3.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001798/0.3172, allocations: 0.7817 MB / 466.7 MB, free: 2.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.3172, allocations: 8 kB / 466.8 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.3173, allocations: 8 kB / 466.8 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003255/0.3176, allocations: 64.83 kB / 466.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004664/0.318, allocations: 119.9 kB / 466.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.32, allocations: 1.691 MB / 468.6 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007554/0.3208, allocations: 71.69 kB / 468.7 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.3208, allocations: 20 kB / 468.7 MB, free: 456 kB / 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.001078/0.3219, allocations: 0.6576 MB / 469.4 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/0.3221, allocations: 198.7 kB / 469.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002916/0.3224, allocations: 218.6 kB / 469.8 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3224, allocations: 4 kB / 469.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3224, allocations: 0 / 469.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.3224, allocations: 8 kB / 469.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003804/0.3262, allocations: 2.127 MB / 471.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3262, allocations: 0 / 471.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.3266, allocations: 91.88 kB / 472 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000221/0.3269, allocations: 64.81 kB / 472.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.3269, allocations: 8 kB / 472.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.3286, allocations: 1.636 MB / 473.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3286, allocations: 0 / 473.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.3306, allocations: 0.9851 MB / 474.7 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009536/0.3315, allocations: 382.5 kB / 475.1 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.3317, allocations: 12 kB / 475.1 MB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005194/0.3322, allocations: 51.89 kB / 475.1 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.3323, allocations: 43.92 kB / 475.2 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.3323, allocations: 12 kB / 475.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003276/0.3356, allocations: 2.263 MB / 477.5 MB, free: 7.465 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3356, allocations: 0 / 477.5 MB, free: 7.465 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008719/0.3365, allocations: 255.6 kB / 477.7 MB, free: 7.215 MB / 382.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.003984/0.3405, allocations: 1.904 MB / 479.6 MB, free: 5.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.3418, allocations: 0.5855 MB / 480.2 MB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.3418, allocations: 8.062 kB / 480.2 MB, free: 4.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.3425, allocations: 350.4 kB / 480.6 MB, free: 4.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3437, allocations: 300.3 kB / 480.8 MB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02998/0.3737, allocations: 19.76 MB / 0.4889 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001307/0.375, allocations: 1.5 MB / 0.4903 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007303/0.3758, allocations: 299.3 kB / 0.4906 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008437/0.3766, allocations: 0.636 MB / 0.4912 GB, free: 13.68 MB / 414.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3766, allocations: 0 / 0.4912 GB, free: 13.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.4769, allocations: 36.86 MB / 0.5272 GB, free: 9.051 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/16.17, allocations: 15.08 kB / 0.5273 GB, free: 9.039 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 20.336781080113724]