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.001521/0.001521, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001685/0.001685, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.419/1.419, allocations: 230.6 MB / 258.3 MB, free: 8.016 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 47.92 kB / 378.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2763, allocations: 53.36 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008047/0.2844, allocations: 6.132 MB / 438 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00376/0.2882, allocations: 2.329 MB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004002/0.2886, allocations: 19.88 kB / 440.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001362/0.2899, allocations: 0.6302 MB / 441 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008766/0.2908, allocations: 453.7 kB / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008671/0.2917, allocations: 417.6 kB / 441.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.2932, allocations: 1.317 MB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005244/0.2937, allocations: 306.4 kB / 443.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000628/0.2943, allocations: 0.4945 MB / 444 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007567/0.2951, allocations: 0.6111 MB / 444.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.2952, allocations: 116 kB / 444.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003098/0.2956, allocations: 179.9 kB / 444.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005584/0.2961, allocations: 0.6505 MB / 445.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008474/0.297, allocations: 0.8972 MB / 446.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002796/0.2998, allocations: 2.642 MB / 449.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2998, allocations: 4 kB / 449.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2998, allocations: 0 / 449.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.283e-05/0.2998, allocations: 0 / 449.1 MB, free: 5.625 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.004552/0.3044, allocations: 2.37 MB / 451.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3044, allocations: 8.031 kB / 451.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.05e-05/0.3044, allocations: 17.5 kB / 451.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.3046, allocations: 106.6 kB / 451.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003523/0.3049, allocations: 227.5 kB / 451.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.3075, allocations: 1.635 MB / 453.4 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.3077, allocations: 185.8 kB / 453.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.953e-05/0.3078, allocations: 63.95 kB / 453.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.3093, allocations: 0.8258 MB / 454.5 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3093, allocations: 3.938 kB / 454.5 MB, free: 0 / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.428e-05/0.3094, allocations: 28.05 kB / 454.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.3094, allocations: 16 kB / 454.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.3105, allocations: 0.5477 MB / 455.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006258/0.3167, allocations: 3.942 MB / 459 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.3181, allocations: 0.5073 MB / 459.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007675/0.3189, allocations: 335.7 kB / 459.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.3189, allocations: 4.281 kB / 459.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.3189, allocations: 42.84 kB / 459.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.3189, allocations: 0 / 459.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002534/0.3215, allocations: 0.8769 MB / 460.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001831/0.3216, allocations: 269 kB / 461.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00559/0.3272, allocations: 3.16 MB / 464.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.3273, allocations: 33.7 kB / 464.3 MB, free: 6.012 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009726/0.3283, allocations: 0.8615 MB / 465.1 MB, free: 5.145 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.3285, allocations: 123 kB / 465.2 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.3287, allocations: 94.14 kB / 465.3 MB, free: 4.926 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3289, allocations: 326 kB / 465.6 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005529/0.3294, allocations: 212.9 kB / 465.9 MB, free: 4.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006849/0.3301, allocations: 401.2 kB / 466.2 MB, free: 3.926 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.3313, allocations: 0.5165 MB / 466.8 MB, free: 3.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.3313, allocations: 12 kB / 466.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001985/0.3333, allocations: 0.7817 MB / 467.6 MB, free: 2.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.3333, allocations: 4 kB / 467.6 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3333, allocations: 4 kB / 467.6 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003345/0.3336, allocations: 69 kB / 467.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.3341, allocations: 119.8 kB / 467.7 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/0.3361, allocations: 1.683 MB / 469.4 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008023/0.3369, allocations: 75.59 kB / 469.5 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.52e-05/0.337, allocations: 20 kB / 469.5 MB, free: 480 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.001023/0.338, allocations: 0.6638 MB / 470.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004477/0.3384, allocations: 190.7 kB / 470.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004407/0.3389, allocations: 222.7 kB / 470.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3389, allocations: 7.938 kB / 470.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3389, allocations: 0 / 470.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.3389, allocations: 3.984 kB / 470.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.3432, allocations: 2.127 MB / 472.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.3433, allocations: 4.062 kB / 472.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/0.3437, allocations: 91.86 kB / 472.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.3439, allocations: 56.89 kB / 472.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.3439, allocations: 11.98 kB / 472.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.3457, allocations: 1.636 MB / 474.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3457, allocations: 0 / 474.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.348, allocations: 0.9929 MB / 475.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.349, allocations: 378.5 kB / 475.9 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000377/0.3494, allocations: 11.98 kB / 475.9 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007543/0.3501, allocations: 47.95 kB / 475.9 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.3503, allocations: 47.92 kB / 476 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.3503, allocations: 15.94 kB / 476 MB, free: 9.758 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004012/0.3543, allocations: 2.263 MB / 478.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3543, allocations: 0 / 478.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00129/0.3556, allocations: 251.6 kB / 478.5 MB, free: 7.23 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.004452/0.36, allocations: 1.899 MB / 480.4 MB, free: 5.484 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.3615, allocations: 0.5927 MB / 481 MB, free: 4.879 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.3615, allocations: 8 kB / 481 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.3622, allocations: 351.1 kB / 481.4 MB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.3639, allocations: 302.1 kB / 481.7 MB, free: 4.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03427/0.3982, allocations: 19.76 MB / 0.4897 GB, free: 168 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.3999, allocations: 1.492 MB / 0.4911 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008576/0.4007, allocations: 303.2 kB / 0.4914 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/0.4018, allocations: 0.6438 MB / 0.492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4018, allocations: 0 / 0.492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08401/0.4858, allocations: 36.89 MB / 0.5281 GB, free: 9.035 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/16.37, allocations: 10.86 kB / 0.5281 GB, free: 9.031 MB / 446.1 MB " [Timeout remaining time 643] (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: 21.27526233001845]