Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 214.4 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 67.89 kB / 377.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2882, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008404/0.2966, allocations: 6.119 MB / 437.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004138/0.3008, allocations: 2.336 MB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005072/0.3013, allocations: 19.88 kB / 439.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.3028, allocations: 0.6302 MB / 440.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009194/0.3037, allocations: 461.6 kB / 440.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008985/0.3046, allocations: 406.7 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001635/0.3062, allocations: 1.317 MB / 442.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005608/0.3068, allocations: 306.4 kB / 442.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006612/0.3074, allocations: 0.5023 MB / 443.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007785/0.3082, allocations: 0.6072 MB / 443.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.3084, allocations: 116 kB / 444 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003119/0.3087, allocations: 179.9 kB / 444.1 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005242/0.3092, allocations: 0.6544 MB / 444.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008276/0.31, allocations: 0.8855 MB / 445.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002752/0.3128, allocations: 2.65 MB / 448.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3128, allocations: 0 / 448.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3128, allocations: 0 / 448.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.3128, allocations: 0 / 448.3 MB, free: 5.461 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.004231/0.3171, allocations: 2.37 MB / 450.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3171, allocations: 8.031 kB / 450.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/0.3172, allocations: 110.6 kB / 450.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.3176, allocations: 223.5 kB / 451 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/0.3204, allocations: 1.632 MB / 452.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.3206, allocations: 193.9 kB / 452.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.3207, allocations: 63.95 kB / 452.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.3222, allocations: 0.8258 MB / 453.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3222, allocations: 4 kB / 453.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.3222, allocations: 28 kB / 453.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.3223, allocations: 23.94 kB / 453.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.3233, allocations: 0.5477 MB / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006406/0.3297, allocations: 3.942 MB / 458.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.3311, allocations: 0.4999 MB / 458.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007797/0.3319, allocations: 348.1 kB / 459.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.3319, allocations: 8.219 kB / 459.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3319, allocations: 38.84 kB / 459.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.3319, allocations: 0 / 459.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002347/0.3343, allocations: 0.8735 MB / 460.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001565/0.3344, allocations: 261 kB / 460.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004415/0.3388, allocations: 3.168 MB / 463.5 MB, free: 5.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.004e-05/0.3389, allocations: 33.7 kB / 463.5 MB, free: 5.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009035/0.3398, allocations: 0.8654 MB / 464.4 MB, free: 4.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.3399, allocations: 123 kB / 464.5 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.3401, allocations: 90.14 kB / 464.6 MB, free: 4.762 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3403, allocations: 326 kB / 464.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004891/0.3407, allocations: 212.9 kB / 465.1 MB, free: 4.227 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006356/0.3414, allocations: 389.4 kB / 465.5 MB, free: 3.773 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.3424, allocations: 0.5244 MB / 466 MB, free: 3.199 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3424, allocations: 0 / 466 MB, free: 3.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001694/0.3441, allocations: 0.7896 MB / 466.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3441, allocations: 4 kB / 466.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3441, allocations: 4 kB / 466.8 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003026/0.3444, allocations: 64.81 kB / 466.9 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004543/0.3449, allocations: 123.9 kB / 467 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.3467, allocations: 1.687 MB / 468.7 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006793/0.3474, allocations: 79.58 kB / 468.8 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.3475, allocations: 24.09 kB / 468.8 MB, free: 308 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.0009792/0.3484, allocations: 0.657 MB / 469.4 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/0.3488, allocations: 198.7 kB / 469.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003282/0.3491, allocations: 214.6 kB / 469.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3491, allocations: 7.938 kB / 469.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3491, allocations: 0 / 469.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.3491, allocations: 3.984 kB / 469.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003753/0.3529, allocations: 2.131 MB / 472 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3529, allocations: 0 / 472 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004071/0.3533, allocations: 83.94 kB / 472.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002067/0.3535, allocations: 56.83 kB / 472.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.3535, allocations: 15.92 kB / 472.1 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001738/0.3552, allocations: 1.64 MB / 473.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3552, allocations: 0 / 473.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.3573, allocations: 0.9839 MB / 474.8 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.3584, allocations: 378.5 kB / 475.1 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.3586, allocations: 15.98 kB / 475.1 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.3591, allocations: 51.95 kB / 475.2 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3592, allocations: 39.94 kB / 475.2 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.3592, allocations: 11.98 kB / 475.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003245/0.3625, allocations: 2.252 MB / 477.5 MB, free: 7.344 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3625, allocations: 0 / 477.5 MB, free: 7.344 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009298/0.3634, allocations: 267.6 kB / 477.8 MB, free: 7.082 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.003996/0.3674, allocations: 1.893 MB / 479.7 MB, free: 5.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001395/0.3688, allocations: 0.5926 MB / 480.2 MB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.3688, allocations: 4 kB / 480.2 MB, free: 4.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006748/0.3695, allocations: 347.2 kB / 480.6 MB, free: 4.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.3709, allocations: 295.6 kB / 480.9 MB, free: 4.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03123/0.4021, allocations: 19.75 MB / 0.4889 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.4035, allocations: 1.5 MB / 0.4904 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008277/0.4043, allocations: 303.2 kB / 0.4906 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009191/0.4052, allocations: 0.6438 MB / 0.4913 GB, free: 13.53 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4052, allocations: 0 / 0.4913 GB, free: 13.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08782/0.4931, allocations: 36.85 MB / 0.5273 GB, free: 8.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.13/16.63, allocations: 10.12 kB / 0.5273 GB, free: 8.824 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv","/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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.857556397000735]