Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001756/0.001756, allocations: 112.4 kB / 20.43 MB, free: 1.457 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.002215/0.002215, allocations: 180.5 kB / 23.72 MB, free: 4.699 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 / 252.5 MB, free: 13.02 MB / 206.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.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002497/0.002497, allocations: 47.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2839, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008013/0.2919, allocations: 5.866 MB / 428.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004746/0.2967, allocations: 2.595 MB / 431.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008885/0.2976, allocations: 31.75 kB / 431.1 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.2996, allocations: 0.7666 MB / 431.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.3009, allocations: 0.5205 MB / 432.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.3022, allocations: 0.5139 MB / 432.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.3042, allocations: 1.597 MB / 434.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006737/0.3049, allocations: 403 kB / 434.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008698/0.3057, allocations: 0.6267 MB / 435.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009789/0.3067, allocations: 0.7705 MB / 436.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.3069, allocations: 132 kB / 436.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004292/0.3073, allocations: 208 kB / 436.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006299/0.308, allocations: 0.6465 MB / 437.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000855/0.3088, allocations: 0.9204 MB / 438.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.3114, allocations: 2.498 MB / 440.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3114, allocations: 0 / 440.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3114, allocations: 0 / 440.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.356e-05/0.3115, allocations: 0 / 440.7 MB, free: 12.45 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005078/0.3166, allocations: 2.561 MB / 443.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3166, allocations: 12.03 kB / 443.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001725/0.3168, allocations: 135.5 kB / 443.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003634/0.3171, allocations: 235.4 kB / 443.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002557/0.3197, allocations: 1.486 MB / 445.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.3198, allocations: 155.4 kB / 445.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.32, allocations: 84 kB / 445.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.3218, allocations: 1.092 MB / 446.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.3218, allocations: 4 kB / 446.5 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.718e-05/0.3219, allocations: 43.94 kB / 446.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.3219, allocations: 20 kB / 446.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.3233, allocations: 0.7183 MB / 447.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00707/0.3303, allocations: 4.53 MB / 451.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.3315, allocations: 0.5365 MB / 452.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007859/0.3323, allocations: 362 kB / 452.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.488e-05/0.3324, allocations: 4 kB / 452.7 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.3324, allocations: 46.5 kB / 452.7 MB, free: 80 kB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.865e-06/0.3324, allocations: 0 / 452.7 MB, free: 80 kB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001888/0.3343, allocations: 0.8327 MB / 453.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000244/0.3345, allocations: 423.2 kB / 453.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003812/0.3383, allocations: 2.743 MB / 456.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.167e-05/0.3384, allocations: 37.7 kB / 456.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007942/0.3392, allocations: 0.8873 MB / 457.6 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.3394, allocations: 158.6 kB / 457.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.3396, allocations: 126.3 kB / 457.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3397, allocations: 337.9 kB / 458.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/0.3403, allocations: 249.2 kB / 458.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000764/0.3411, allocations: 0.5363 MB / 459 MB, free: 9.484 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.3421, allocations: 0.6171 MB / 459.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3421, allocations: 4 kB / 459.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001696/0.3438, allocations: 0.858 MB / 460.5 MB, free: 7.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3438, allocations: 8 kB / 460.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3438, allocations: 4 kB / 460.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3439, allocations: 12 kB / 460.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005933/0.3445, allocations: 160 kB / 460.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.229e-05/0.3445, allocations: 19.92 kB / 460.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.3455, allocations: 159.4 kB / 460.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.362e-05/0.3455, allocations: 24 kB / 460.9 MB, free: 7.539 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008405/0.3464, allocations: 0.5599 MB / 461.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002688/0.3467, allocations: 186.8 kB / 461.6 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.3481, allocations: 0.6884 MB / 462.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.3481, allocations: 11.92 kB / 462.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3481, allocations: 0 / 462.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3481, allocations: 3.984 kB / 462.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003503/0.3516, allocations: 2.089 MB / 464.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3516, allocations: 4 kB / 464.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.3521, allocations: 107.9 kB / 464.5 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.3521, allocations: 0 / 464.5 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.3521, allocations: 12 kB / 464.5 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3521, allocations: 0 / 464.5 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.3521, allocations: 12.09 kB / 464.5 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.354, allocations: 1.06 MB / 465.6 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008141/0.3548, allocations: 342.6 kB / 465.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.355, allocations: 16 kB / 465.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009619/0.3559, allocations: 135.8 kB / 466.1 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003019/0.3562, allocations: 159.7 kB / 466.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.3563, allocations: 16 kB / 466.2 MB, free: 2.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002719/0.359, allocations: 1.951 MB / 468.2 MB, free: 68 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.359, allocations: 3.938 kB / 468.2 MB, free: 64 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001008/0.36, allocations: 311.5 kB / 468.5 MB, free: 15.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003774/0.3638, allocations: 1.97 MB / 470.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.365, allocations: 0.5701 MB / 471 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.365, allocations: 448 / 471 MB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006509/0.3657, allocations: 339.4 kB / 471.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.3671, allocations: 325.1 kB / 471.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02697/0.3941, allocations: 17.2 MB / 488.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001385/0.3955, allocations: 1.433 MB / 490.3 MB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008562/0.3963, allocations: 295.1 kB / 490.6 MB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009847/0.3973, allocations: 0.7023 MB / 491.3 MB, free: 8.672 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3973, allocations: 3.938 kB / 491.3 MB, free: 8.668 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09122/0.4885, allocations: 39.46 MB / 0.5183 GB, free: 1.473 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.69, allocations: 7.938 kB / 0.5184 GB, free: 1.465 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable energy2.y in file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv. Warning: Get data of variable energy2.y from file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.367831389998173]