Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001773/0.001773, allocations: 124 kB / 17.79 MB, free: 5.266 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.001396/0.001396, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.423/1.423, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 47.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1015, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005711/0.1072, allocations: 4.001 MB / 421.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003059/0.1102, allocations: 1.921 MB / 423.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.1105, allocations: 15.88 kB / 423.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.1117, allocations: 0.5876 MB / 424.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006907/0.1124, allocations: 354.2 kB / 424.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007356/0.1132, allocations: 283.5 kB / 424.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.1143, allocations: 0.985 MB / 425.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.1148, allocations: 248.6 kB / 426.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004552/0.1152, allocations: 398.7 kB / 426.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005916/0.1158, allocations: 0.5061 MB / 427 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.1159, allocations: 80 kB / 427.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.1162, allocations: 136 kB / 427.3 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000395/0.1166, allocations: 482.5 kB / 427.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00059/0.1172, allocations: 0.6251 MB / 428.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001784/0.119, allocations: 1.77 MB / 430.1 MB, free: 220 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.119, allocations: 0 / 430.1 MB, free: 220 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.119, allocations: 0 / 430.1 MB, free: 220 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.119, allocations: 0 / 430.1 MB, free: 220 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003274/0.1223, allocations: 1.86 MB / 432 MB, free: 14.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1223, allocations: 8.031 kB / 432 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.1225, allocations: 98.7 kB / 432.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.1227, allocations: 163.9 kB / 432.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.1244, allocations: 1.19 MB / 433.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.1245, allocations: 104.7 kB / 433.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.125e-05/0.1246, allocations: 48 kB / 433.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.1258, allocations: 0.6556 MB / 434.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1258, allocations: 0 / 434.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.508e-05/0.1258, allocations: 28 kB / 434.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.1258, allocations: 12 kB / 434.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008267/0.1267, allocations: 435.7 kB / 434.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004656/0.1313, allocations: 2.868 MB / 437.6 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.1324, allocations: 403.2 kB / 438 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006526/0.133, allocations: 301.1 kB / 438.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.133, allocations: 7.969 kB / 438.3 MB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/0.1331, allocations: 42.56 kB / 438.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.1331, allocations: 0 / 438.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.001961/0.135, allocations: 0.7718 MB / 439.1 MB, free: 6.926 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.1352, allocations: 265 kB / 439.3 MB, free: 6.605 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.1384, allocations: 2.226 MB / 441.6 MB, free: 4.367 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.22e-05/0.1385, allocations: 33.7 kB / 441.6 MB, free: 4.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006104/0.1391, allocations: 0.6434 MB / 442.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.1392, allocations: 115.1 kB / 442.4 MB, free: 3.562 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.1393, allocations: 78.02 kB / 442.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1395, allocations: 325.9 kB / 442.7 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.1399, allocations: 156.7 kB / 442.9 MB, free: 3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.1403, allocations: 308.5 kB / 443.2 MB, free: 2.645 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007373/0.1411, allocations: 400.5 kB / 443.6 MB, free: 2.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1411, allocations: 0 / 443.6 MB, free: 2.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001498/0.1426, allocations: 0.6414 MB / 444.2 MB, free: 1.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.1426, allocations: 11.94 kB / 444.2 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1426, allocations: 128 / 444.2 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003075/0.1429, allocations: 72.81 kB / 444.3 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.1433, allocations: 87.88 kB / 444.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.19/0.3332, allocations: 1.757 MB / 446.2 MB, free: 28.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006975/0.3339, allocations: 62.95 kB / 446.2 MB, free: 28.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.334, allocations: 15.94 kB / 446.2 MB, free: 28.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0005729/0.3345, allocations: 483.4 kB / 446.7 MB, free: 28.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.3347, allocations: 143.3 kB / 446.9 MB, free: 28.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.3349, allocations: 162.8 kB / 447 MB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3349, allocations: 10.45 kB / 447 MB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3349, allocations: 0 / 447 MB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3349, allocations: 2.531 kB / 447 MB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.3373, allocations: 1.65 MB / 448.7 MB, free: 27.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3373, allocations: 0 / 448.7 MB, free: 27.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003205/0.3376, allocations: 68.77 kB / 448.7 MB, free: 27.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.3378, allocations: 63.5 kB / 448.8 MB, free: 27.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.3378, allocations: 12.62 kB / 448.8 MB, free: 27.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.3389, allocations: 1.722 MB / 450.5 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3389, allocations: 1.406 kB / 450.5 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.3402, allocations: 0.8098 MB / 451.3 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004343/0.3407, allocations: 336 kB / 451.7 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.3408, allocations: 10.05 kB / 451.7 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.3412, allocations: 50.14 kB / 451.7 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.3413, allocations: 26.52 kB / 451.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.3414, allocations: 14.83 kB / 451.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002019/0.3434, allocations: 1.597 MB / 453.4 MB, free: 25.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3434, allocations: 3.156 kB / 453.4 MB, free: 25.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007657/0.3441, allocations: 206.6 kB / 453.6 MB, free: 25.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.003363/0.3475, allocations: 1.72 MB / 455.3 MB, free: 24.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.3486, allocations: 494.8 kB / 455.8 MB, free: 24.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3486, allocations: 1.188 kB / 455.8 MB, free: 24.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004936/0.349, allocations: 298.3 kB / 456.1 MB, free: 24.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.3501, allocations: 214.2 kB / 456.3 MB, free: 24.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/0.3704, allocations: 13.87 MB / 470.2 MB, free: 19.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008622/0.3712, allocations: 1.25 MB / 471.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006278/0.3719, allocations: 219.2 kB / 471.6 MB, free: 18.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005354/0.3724, allocations: 476.4 kB / 472.1 MB, free: 18.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3724, allocations: 0 / 472.1 MB, free: 18.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06272/0.4351, allocations: 28.05 MB / 0.4884 GB, free: 9.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.46, allocations: 9.172 kB / 0.4884 GB, free: 9.641 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_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_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.350748440716416]