Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001883/0.001883, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.002089/0.002089, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.54/1.54, allocations: 222.9 MB / 246.4 MB, free: 4.184 MB / 190.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_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 51.92 kB / 357.5 MB, free: 8.812 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1028, allocations: 49.43 MB / 406.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008448/0.1113, allocations: 5.499 MB / 412.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003044/0.1144, allocations: 1.715 MB / 414.1 MB, free: 100 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005019/0.1149, allocations: 15.94 kB / 414.1 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.1162, allocations: 0.5136 MB / 414.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007939/0.117, allocations: 346.1 kB / 415 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008217/0.1179, allocations: 366.2 kB / 415.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.1189, allocations: 0.9041 MB / 416.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005294/0.1195, allocations: 340.8 kB / 416.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004546/0.12, allocations: 358.8 kB / 416.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005358/0.1205, allocations: 450.4 kB / 417.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.1206, allocations: 76 kB / 417.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.1209, allocations: 116 kB / 417.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005001/0.1214, allocations: 0.5882 MB / 418.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006507/0.122, allocations: 0.7338 MB / 418.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002075/0.1241, allocations: 2.132 MB / 421 MB, free: 9.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1241, allocations: 4 kB / 421 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1241, allocations: 0 / 421 MB, free: 9.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.474e-05/0.1242, allocations: 0 / 421 MB, free: 9.164 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003141/0.1273, allocations: 2.129 MB / 423.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1274, allocations: 12.03 kB / 423.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1275, allocations: 90.7 kB / 423.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000286/0.1278, allocations: 199.6 kB / 423.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002264/0.13, allocations: 1.511 MB / 425 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.675e-05/0.1301, allocations: 62.7 kB / 425 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.382e-05/0.1302, allocations: 48 kB / 425.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1314, allocations: 0.5893 MB / 425.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.1314, allocations: 0 / 425.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.1314, allocations: 24 kB / 425.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1315, allocations: 12 kB / 425.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000729/0.1322, allocations: 347.7 kB / 426 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004508/0.1367, allocations: 3.243 MB / 429.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1379, allocations: 382 kB / 429.6 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004812/0.1383, allocations: 186.1 kB / 429.8 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.155e-05/0.1384, allocations: 4 kB / 429.8 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.1384, allocations: 34.56 kB / 429.9 MB, free: 24 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.194e-06/0.1384, allocations: 0 / 429.9 MB, free: 24 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.1978/0.3363, allocations: 0.6988 MB / 430.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.3364, allocations: 209.2 kB / 430.8 MB, free: 21.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003254/0.3396, allocations: 2.893 MB / 433.7 MB, free: 21.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.3397, allocations: 30.77 kB / 433.7 MB, free: 21.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006695/0.3404, allocations: 0.786 MB / 434.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.3404, allocations: 85.2 kB / 434.6 MB, free: 21.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.3406, allocations: 66.45 kB / 434.6 MB, free: 21.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.955e-05/0.3406, allocations: 321.4 kB / 434.9 MB, free: 20.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/0.341, allocations: 120.4 kB / 435.1 MB, free: 20.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000425/0.3414, allocations: 289.7 kB / 435.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006431/0.342, allocations: 367.9 kB / 435.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.3421, allocations: 1.062 kB / 435.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001184/0.3432, allocations: 0.5623 MB / 436.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3433, allocations: 8.531 kB / 436.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3433, allocations: 3.5 kB / 436.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.3436, allocations: 59.64 kB / 436.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.3439, allocations: 79.17 kB / 436.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.3451, allocations: 1.726 MB / 438.1 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.3456, allocations: 65.5 kB / 438.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3456, allocations: 15.62 kB / 438.2 MB, free: 18.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0006317/0.3462, allocations: 0.5759 MB / 438.8 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.3464, allocations: 170.7 kB / 439 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.3476, allocations: 0.5128 MB / 439.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3476, allocations: 2.797 kB / 439.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.3476, allocations: 2.859 kB / 439.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3476, allocations: 2.016 kB / 439.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.35, allocations: 1.687 MB / 441.2 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.35, allocations: 3.125 kB / 441.2 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.3502, allocations: 45.72 kB / 441.2 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.3504, allocations: 55.06 kB / 441.3 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3504, allocations: 2.297 kB / 441.3 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.3515, allocations: 1.68 MB / 442.9 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3515, allocations: 3.781 kB / 442.9 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.3528, allocations: 0.7187 MB / 443.7 MB, free: 16.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/0.3533, allocations: 386.2 kB / 444 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.3534, allocations: 11.05 kB / 444.1 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004056/0.3538, allocations: 42.94 kB / 444.1 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.5e-05/0.3539, allocations: 31.31 kB / 444.1 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.3539, allocations: 8.844 kB / 444.1 MB, free: 16.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.3564, allocations: 2.067 MB / 446.2 MB, free: 16.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3565, allocations: 0 / 446.2 MB, free: 16.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000717/0.3572, allocations: 201.1 kB / 446.4 MB, free: 16.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002597/0.3598, allocations: 1.531 MB / 447.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009681/0.3608, allocations: 440.4 kB / 448.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3608, allocations: 1.5 kB / 448.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.3612, allocations: 270 kB / 448.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/0.3622, allocations: 221.5 kB / 448.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/0.3826, allocations: 17.51 MB / 466.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006762/0.3833, allocations: 1.351 MB / 467.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005051/0.3838, allocations: 249.3 kB / 468 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005268/0.3844, allocations: 0.5773 MB / 468.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3844, allocations: 0 / 468.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07143/0.4558, allocations: 32.7 MB / 0.4895 GB, free: 1.113 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.48, allocations: 15.83 kB / 0.4895 GB, free: 1.098 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 17.5388157380512]