Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001821/0.001821, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002/0.002, allocations: 209.6 kB / 23.73 MB, free: 4.387 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.434/1.434, allocations: 230.6 MB / 257.5 MB, free: 7.77 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.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 51.92 kB / 377.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.27, allocations: 53.37 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007681/0.2776, allocations: 5.207 MB / 436.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004824/0.2825, allocations: 2.592 MB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005707/0.283, allocations: 27.81 kB / 438.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001598/0.2846, allocations: 0.7427 MB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.2858, allocations: 0.5633 MB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.287, allocations: 0.5243 MB / 440.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001999/0.289, allocations: 1.594 MB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007105/0.2897, allocations: 383 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008762/0.2905, allocations: 0.6307 MB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009437/0.2915, allocations: 0.7158 MB / 444.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.2917, allocations: 132 kB / 444.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004258/0.2921, allocations: 211.9 kB / 444.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005803/0.2927, allocations: 0.6504 MB / 445 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007718/0.2935, allocations: 0.7224 MB / 445.8 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002534/0.296, allocations: 2.521 MB / 448.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.296, allocations: 4 kB / 448.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.296, allocations: 0 / 448.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.168e-05/0.296, allocations: 0 / 448.3 MB, free: 5.32 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.004853/0.3009, allocations: 2.58 MB / 450.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3009, allocations: 12.03 kB / 450.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.3011, allocations: 139.5 kB / 451 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003548/0.3015, allocations: 239.4 kB / 451.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002453/0.3039, allocations: 1.499 MB / 452.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.3041, allocations: 151.4 kB / 452.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.3042, allocations: 84 kB / 453 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.3064, allocations: 1.714 MB / 454.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.3064, allocations: 0 / 454.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.651e-05/0.3065, allocations: 40 kB / 454.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.3065, allocations: 20 kB / 454.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.3078, allocations: 0.7182 MB / 455.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006555/0.3144, allocations: 4.183 MB / 459.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.3155, allocations: 0.5172 MB / 460.2 MB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007441/0.3163, allocations: 361.9 kB / 460.5 MB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.3163, allocations: 4 kB / 460.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.3164, allocations: 50.5 kB / 460.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.3164, allocations: 0 / 460.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001803/0.3182, allocations: 0.821 MB / 461.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002314/0.3184, allocations: 427.2 kB / 461.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003608/0.322, allocations: 2.771 MB / 464.6 MB, free: 4.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.733e-05/0.3221, allocations: 41.7 kB / 464.6 MB, free: 4.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008061/0.3229, allocations: 0.8875 MB / 465.5 MB, free: 3.391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.323, allocations: 170.6 kB / 465.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.3232, allocations: 118.3 kB / 465.8 MB, free: 3.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3234, allocations: 334 kB / 466.1 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005444/0.3239, allocations: 257.1 kB / 466.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000948/0.3249, allocations: 0.8839 MB / 467.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.326, allocations: 0.6171 MB / 467.9 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.326, allocations: 4 kB / 467.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0017/0.3277, allocations: 0.858 MB / 468.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3277, allocations: 8 kB / 468.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3277, allocations: 8 kB / 468.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.3277, allocations: 8 kB / 468.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/0.3283, allocations: 167.9 kB / 468.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.3283, allocations: 8 kB / 468.9 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.3294, allocations: 163.4 kB / 469.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/0.3294, allocations: 31.98 kB / 469.1 MB, free: 15.48 MB / 382.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.0008223/0.3303, allocations: 0.556 MB / 469.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.3305, allocations: 194.7 kB / 469.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.3319, allocations: 0.6963 MB / 470.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.3319, allocations: 15.86 kB / 470.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.332, allocations: 3.938 kB / 470.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.332, allocations: 3.984 kB / 470.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/0.3353, allocations: 1.891 MB / 472.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3353, allocations: 0 / 472.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004916/0.3358, allocations: 116 kB / 472.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3358, allocations: 0 / 472.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.3359, allocations: 15.98 kB / 472.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.3359, allocations: 4 kB / 472.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3359, allocations: 3.938 kB / 472.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.3377, allocations: 1.048 MB / 473.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007842/0.3385, allocations: 342.6 kB / 474 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.3387, allocations: 16 kB / 474 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.3397, allocations: 143.8 kB / 474.2 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.34, allocations: 159.6 kB / 474.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.3401, allocations: 16 kB / 474.3 MB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002611/0.3427, allocations: 1.967 MB / 476.3 MB, free: 8.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3427, allocations: 0 / 476.3 MB, free: 8.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008553/0.3435, allocations: 315.4 kB / 476.6 MB, free: 7.859 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.003913/0.3474, allocations: 2.007 MB / 478.6 MB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.3487, allocations: 0.5775 MB / 479.2 MB, free: 5.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3487, allocations: 0 / 479.2 MB, free: 5.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006672/0.3494, allocations: 331.5 kB / 479.5 MB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.3507, allocations: 335.4 kB / 479.8 MB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02619/0.3769, allocations: 17.24 MB / 497.1 MB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.3781, allocations: 0.8535 MB / 497.9 MB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008906/0.379, allocations: 291.1 kB / 498.2 MB, free: 2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.3801, allocations: 0.7023 MB / 498.9 MB, free: 1.297 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3801, allocations: 8 kB / 498.9 MB, free: 1.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09047/0.4706, allocations: 41.78 MB / 0.528 GB, free: 7.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.25, allocations: 3.984 kB / 0.528 GB, free: 7.816 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv. Warning: Get data of variable energy2.y from file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.10510861314833]