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.001235/0.001235, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001384/0.001384, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.435/1.435, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001503/0.001503, allocations: 51.91 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2633, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007681/0.271, allocations: 5.416 MB / 436.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.2747, allocations: 2.182 MB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003165/0.275, allocations: 23.88 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.2762, allocations: 0.6029 MB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007518/0.277, allocations: 461.7 kB / 439.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007612/0.2778, allocations: 406.8 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.2792, allocations: 1.313 MB / 441.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005341/0.2798, allocations: 302.4 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006039/0.2804, allocations: 0.5062 MB / 442.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007637/0.2811, allocations: 0.611 MB / 442.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.2813, allocations: 116 kB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002964/0.2816, allocations: 176 kB / 443.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005543/0.2821, allocations: 0.6544 MB / 443.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007065/0.2828, allocations: 0.6719 MB / 444.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002655/0.2855, allocations: 2.669 MB / 447.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2855, allocations: 0 / 447.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.347e-06/0.2855, allocations: 4 kB / 447.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.711e-05/0.2855, allocations: 0 / 447.2 MB, free: 6.492 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.004287/0.2898, allocations: 2.366 MB / 449.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2899, allocations: 8.031 kB / 449.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.29, allocations: 106.7 kB / 449.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.2903, allocations: 223.5 kB / 449.8 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002798/0.2931, allocations: 1.639 MB / 451.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.2933, allocations: 181.8 kB / 451.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2934, allocations: 63.95 kB / 451.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.2952, allocations: 1.185 MB / 452.9 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.2952, allocations: 3.938 kB / 452.9 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.769e-05/0.2953, allocations: 28 kB / 452.9 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.2953, allocations: 19.98 kB / 453 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.2964, allocations: 0.5399 MB / 453.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005914/0.3023, allocations: 3.611 MB / 457.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.3037, allocations: 0.503 MB / 457.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007744/0.3044, allocations: 341.2 kB / 457.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.3045, allocations: 4.281 kB / 458 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.3045, allocations: 42.83 kB / 458 MB, free: 11.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.874e-06/0.3045, allocations: 0 / 458 MB, free: 11.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002323/0.3068, allocations: 0.8699 MB / 458.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.307, allocations: 265 kB / 459.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/0.3113, allocations: 3.164 MB / 462.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.243e-05/0.3113, allocations: 37.7 kB / 462.3 MB, free: 6.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008775/0.3122, allocations: 0.8654 MB / 463.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.3123, allocations: 126.9 kB / 463.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.3125, allocations: 102.1 kB / 463.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3127, allocations: 326 kB / 463.7 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004866/0.3132, allocations: 204.9 kB / 463.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007604/0.3139, allocations: 0.5927 MB / 464.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.3149, allocations: 0.5244 MB / 465 MB, free: 3.879 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.3149, allocations: 4 kB / 465.1 MB, free: 3.875 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001714/0.3167, allocations: 0.7819 MB / 465.8 MB, free: 3.082 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.3167, allocations: 8 kB / 465.8 MB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.3167, allocations: 8.031 kB / 465.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003729/0.3171, allocations: 64.81 kB / 465.9 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005065/0.3176, allocations: 115.8 kB / 466 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.3196, allocations: 1.671 MB / 467.7 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/0.3201, allocations: 79.53 kB / 467.8 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.3202, allocations: 24.09 kB / 467.8 MB, free: 1 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.0008983/0.3211, allocations: 0.6562 MB / 468.5 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002588/0.3213, allocations: 198.7 kB / 468.6 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00029/0.3216, allocations: 214.6 kB / 468.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3216, allocations: 4 kB / 468.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.3216, allocations: 0 / 468.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3216, allocations: 3.984 kB / 468.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003622/0.3253, allocations: 1.924 MB / 470.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3253, allocations: 128 / 470.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3257, allocations: 87.81 kB / 470.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/0.3259, allocations: 60.89 kB / 470.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.3259, allocations: 12 kB / 470.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.3276, allocations: 1.625 MB / 472.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.3276, allocations: 3.984 kB / 472.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.3297, allocations: 0.9845 MB / 473.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.3307, allocations: 374.6 kB / 473.9 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.3309, allocations: 12 kB / 473.9 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005574/0.3314, allocations: 55.94 kB / 474 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.3315, allocations: 35.94 kB / 474 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.3316, allocations: 19.94 kB / 474 MB, free: 10.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003352/0.3349, allocations: 2.255 MB / 476.3 MB, free: 8.258 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3349, allocations: 0 / 476.3 MB, free: 8.258 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008934/0.3358, allocations: 263.5 kB / 476.6 MB, free: 8 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.004122/0.3399, allocations: 1.926 MB / 478.5 MB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.3414, allocations: 0.5966 MB / 479.1 MB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.3414, allocations: 4 kB / 479.1 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007076/0.3421, allocations: 355.1 kB / 479.4 MB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.3435, allocations: 291.8 kB / 479.7 MB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03033/0.3739, allocations: 19.75 MB / 499.5 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.3751, allocations: 0.9044 MB / 0.4886 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008689/0.3759, allocations: 303.2 kB / 0.4889 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009518/0.3769, allocations: 0.6477 MB / 0.4896 GB, free: 15.06 MB / 414.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3769, allocations: 0 / 0.4896 GB, free: 15.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09663/0.4735, allocations: 38.44 MB / 0.5271 GB, free: 8.891 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.48, allocations: 8 kB / 0.5271 GB, free: 8.883 MB / 446.1 MB " [Timeout remaining time 645] (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: 18.46078074001707]