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.00125/0.00125, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001348/0.001348, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.451/1.451, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001597/0.001597, allocations: 51.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1109, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2307/0.3417, allocations: 6.083 MB / 432.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003412/0.3451, allocations: 2.324 MB / 434.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005453/0.3456, allocations: 19.78 kB / 434.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.347, allocations: 0.6217 MB / 435.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00091/0.3479, allocations: 450.8 kB / 435.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008647/0.3488, allocations: 401.6 kB / 436.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.3503, allocations: 1.315 MB / 437.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005263/0.3508, allocations: 344 kB / 437.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007729/0.3516, allocations: 0.502 MB / 438.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007645/0.3524, allocations: 0.6113 MB / 439 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.3525, allocations: 117.6 kB / 439.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003386/0.3529, allocations: 172.8 kB / 439.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000502/0.3534, allocations: 0.6586 MB / 439.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007986/0.3542, allocations: 0.8872 MB / 440.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003626/0.3578, allocations: 2.643 MB / 443.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.3578, allocations: 0 / 443.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3578, allocations: 0 / 443.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.716e-05/0.3579, allocations: 0 / 443.4 MB, free: 4.211 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.005673/0.3636, allocations: 2.442 MB / 445.9 MB, free: 2.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.3636, allocations: 10.05 kB / 445.9 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.3638, allocations: 106.8 kB / 446 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004841/0.3643, allocations: 230.9 kB / 446.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003136/0.3674, allocations: 1.692 MB / 447.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.3675, allocations: 106.7 kB / 448 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.3676, allocations: 65.08 kB / 448.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.3691, allocations: 0.8271 MB / 448.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.3691, allocations: 0.8906 kB / 448.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-05/0.3692, allocations: 27.38 kB / 448.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.3692, allocations: 15.62 kB / 448.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.3703, allocations: 0.5479 MB / 449.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007555/0.3778, allocations: 4.007 MB / 453.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.3792, allocations: 0.4991 MB / 454 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007743/0.38, allocations: 344.7 kB / 454.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.38, allocations: 3.625 kB / 454.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.3801, allocations: 42.89 kB / 454.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/0.3801, allocations: 0 / 454.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002842/0.3829, allocations: 0.9482 MB / 455.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001933/0.3831, allocations: 262 kB / 455.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005809/0.3889, allocations: 3.161 MB / 458.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.389, allocations: 33.3 kB / 458.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009173/0.39, allocations: 0.859 MB / 459.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.3901, allocations: 133.1 kB / 459.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.3903, allocations: 92.67 kB / 459.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3904, allocations: 326.7 kB / 460.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005494/0.391, allocations: 212.8 kB / 460.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006509/0.3916, allocations: 399.3 kB / 460.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3927, allocations: 0.5164 MB / 461.3 MB, free: 9.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3927, allocations: 5 kB / 461.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002158/0.3948, allocations: 0.7902 MB / 462.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.3949, allocations: 7.625 kB / 462.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.3949, allocations: 3.75 kB / 462.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003231/0.3952, allocations: 63.81 kB / 462.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.3957, allocations: 123 kB / 462.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/0.3977, allocations: 1.785 MB / 464.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.3988, allocations: 77.84 kB / 464.1 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.118e-05/0.3989, allocations: 18.31 kB / 464.1 MB, free: 7.406 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.001276/0.4002, allocations: 0.6567 MB / 464.8 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005399/0.4007, allocations: 196.6 kB / 465 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004452/0.4011, allocations: 216.8 kB / 465.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4011, allocations: 7.734 kB / 465.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4012, allocations: 0 / 465.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4012, allocations: 0 / 465.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004087/0.4052, allocations: 2.164 MB / 467.4 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.4053, allocations: 1.891 kB / 467.4 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004202/0.4057, allocations: 84.48 kB / 467.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002203/0.4059, allocations: 61.94 kB / 467.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.4059, allocations: 8.688 kB / 467.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/0.4077, allocations: 1.752 MB / 469.3 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4077, allocations: 0 / 469.3 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.4102, allocations: 0.9826 MB / 470.3 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.4113, allocations: 454.2 kB / 470.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.4116, allocations: 11.53 kB / 470.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005972/0.4122, allocations: 53.42 kB / 470.8 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.4123, allocations: 45.52 kB / 470.8 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.4124, allocations: 6.875 kB / 470.8 MB, free: 2.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004127/0.4165, allocations: 2.262 MB / 473.1 MB, free: 1.246 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4165, allocations: 0 / 473.1 MB, free: 1.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001483/0.418, allocations: 263.5 kB / 473.3 MB, free: 0.9883 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.004326/0.4223, allocations: 1.894 MB / 475.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.4237, allocations: 0.5925 MB / 475.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4238, allocations: 0 / 475.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007053/0.4245, allocations: 347.1 kB / 476.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/0.4262, allocations: 291.9 kB / 476.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03564/0.4618, allocations: 19.76 MB / 496.2 MB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.4632, allocations: 1.501 MB / 497.7 MB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009248/0.4641, allocations: 303.2 kB / 498 MB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000997/0.4651, allocations: 0.6438 MB / 498.7 MB, free: 7.484 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4651, allocations: 0 / 498.7 MB, free: 7.484 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/0.5948, allocations: 36.5 MB / 0.5226 GB, free: 3.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.6/16.2, allocations: 6.953 kB / 0.5226 GB, free: 3.246 MB / 430.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.012575343018398]