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.001257/0.001257, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001325/0.001325, allocations: 190.1 kB / 24.49 MB, free: 3.98 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.384/1.384, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 51.92 kB / 371.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2504, allocations: 52.18 MB / 423.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007232/0.2576, allocations: 5.363 MB / 428.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003505/0.2611, allocations: 2.026 MB / 430.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004737/0.2616, allocations: 19.88 kB / 430.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.263, allocations: 0.603 MB / 431.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007719/0.2638, allocations: 417.8 kB / 431.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008704/0.2646, allocations: 415 kB / 432.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.2661, allocations: 1.301 MB / 433.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005282/0.2667, allocations: 310.3 kB / 433.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006189/0.2673, allocations: 0.5062 MB / 434.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007226/0.268, allocations: 0.6072 MB / 434.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.2682, allocations: 116 kB / 435 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003114/0.2685, allocations: 172 kB / 435.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005194/0.269, allocations: 0.6622 MB / 435.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006895/0.2697, allocations: 0.6602 MB / 436.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002603/0.2723, allocations: 2.662 MB / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2723, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2723, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.2723, allocations: 0 / 439.1 MB, free: 14.69 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.003879/0.2762, allocations: 2.35 MB / 441.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.2763, allocations: 12.03 kB / 441.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.753e-05/0.2763, allocations: 21.48 kB / 441.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.2764, allocations: 106.6 kB / 441.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.2767, allocations: 227.5 kB / 441.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002526/0.2793, allocations: 1.636 MB / 443.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.2795, allocations: 181.8 kB / 443.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.2796, allocations: 60 kB / 443.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.2812, allocations: 1.181 MB / 444.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.2812, allocations: 0 / 444.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.93e-05/0.2813, allocations: 28 kB / 444.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.2813, allocations: 16 kB / 444.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.2824, allocations: 0.5516 MB / 445.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005683/0.2881, allocations: 3.607 MB / 449.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.2893, allocations: 0.4929 MB / 449.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007462/0.29, allocations: 342.1 kB / 449.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.2901, allocations: 4.281 kB / 449.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/0.2901, allocations: 42.78 kB / 450 MB, free: 3.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.803e-06/0.2901, allocations: 0 / 450 MB, free: 3.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002257/0.2924, allocations: 0.8739 MB / 450.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.2925, allocations: 273 kB / 451.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003881/0.2964, allocations: 3.14 MB / 454.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.2964, allocations: 37.7 kB / 454.3 MB, free: 15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008116/0.2973, allocations: 0.8653 MB / 455.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.2974, allocations: 122.9 kB / 455.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.2976, allocations: 102.1 kB / 455.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2977, allocations: 330 kB / 455.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/0.2982, allocations: 208.9 kB / 455.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007415/0.2989, allocations: 0.5889 MB / 456.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000966/0.2999, allocations: 0.5168 MB / 457 MB, free: 12.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.2999, allocations: 4 kB / 457 MB, free: 12.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001634/0.3015, allocations: 0.7775 MB / 457.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.3015, allocations: 12.42 kB / 457.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.3016, allocations: 4 kB / 457.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003014/0.3019, allocations: 68.83 kB / 457.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.3023, allocations: 107.9 kB / 458 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.3041, allocations: 1.683 MB / 459.7 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005653/0.3047, allocations: 75.58 kB / 459.7 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.3047, allocations: 16 kB / 459.8 MB, free: 9.223 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.0009654/0.3057, allocations: 0.6654 MB / 460.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.3059, allocations: 194.7 kB / 460.6 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.3062, allocations: 218.5 kB / 460.8 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.3062, allocations: 4 kB / 460.8 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3062, allocations: 0 / 460.8 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3062, allocations: 0 / 460.8 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/0.3095, allocations: 1.904 MB / 462.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.3095, allocations: 8.062 kB / 462.7 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.3099, allocations: 83.88 kB / 462.8 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.3101, allocations: 60.88 kB / 462.9 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.3101, allocations: 12 kB / 462.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001664/0.3118, allocations: 1.625 MB / 464.5 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3118, allocations: 4.094 kB / 464.5 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.3138, allocations: 0.9727 MB / 465.5 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007754/0.3145, allocations: 382.5 kB / 465.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.3147, allocations: 16 kB / 465.9 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005182/0.3152, allocations: 51.94 kB / 465.9 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3153, allocations: 39.88 kB / 466 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.3153, allocations: 15.98 kB / 466 MB, free: 2.766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003277/0.3186, allocations: 2.251 MB / 468.2 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3186, allocations: 0 / 468.2 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009163/0.3195, allocations: 255.7 kB / 468.5 MB, free: 252 kB / 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.003883/0.3234, allocations: 1.942 MB / 470.4 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.3247, allocations: 0.5966 MB / 471 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3247, allocations: 0 / 471 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006424/0.3254, allocations: 355.1 kB / 471.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.3266, allocations: 288.2 kB / 471.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02924/0.3559, allocations: 19.75 MB / 491.4 MB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001074/0.3569, allocations: 0.9042 MB / 492.3 MB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000696/0.3576, allocations: 303.1 kB / 492.6 MB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008991/0.3585, allocations: 0.6477 MB / 493.3 MB, free: 7.289 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3585, allocations: 0 / 493.3 MB, free: 7.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08868/0.4472, allocations: 37.68 MB / 0.5185 GB, free: 1.883 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.82/16.27, allocations: 11.98 kB / 0.5185 GB, free: 1.871 MB / 430.1 MB " [Timeout remaining time 643] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 21.05061613302678]