Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001642/0.001642, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001963/0.001963, allocations: 214.6 kB / 20.75 MB, free: 2.328 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.57/1.57, allocations: 230.4 MB / 254 MB, free: 15.04 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.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 71.89 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1221, allocations: 53.37 MB / 426.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2751/0.3972, allocations: 5.871 MB / 432.2 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004828/0.4021, allocations: 2.758 MB / 435 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007571/0.4028, allocations: 28.75 kB / 435 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.4047, allocations: 0.771 MB / 435.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.4061, allocations: 0.5553 MB / 436.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.4074, allocations: 0.509 MB / 436.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002193/0.4096, allocations: 1.597 MB / 438.4 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006583/0.4103, allocations: 443.2 kB / 438.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009845/0.4112, allocations: 0.6295 MB / 439.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009435/0.4122, allocations: 0.7675 MB / 440.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.4124, allocations: 136.8 kB / 440.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004463/0.4128, allocations: 213.5 kB / 440.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005725/0.4134, allocations: 0.6389 MB / 441.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007171/0.4141, allocations: 0.9241 MB / 442.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003184/0.4173, allocations: 2.503 MB / 444.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4173, allocations: 4 kB / 444.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4173, allocations: 0 / 444.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.931e-05/0.4174, allocations: 1.531 kB / 444.7 MB, free: 3.289 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.005952/0.4233, allocations: 2.652 MB / 447.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.4234, allocations: 9.531 kB / 447.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.4236, allocations: 139.5 kB / 447.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005107/0.4241, allocations: 233 kB / 447.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.4267, allocations: 1.571 MB / 449.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.4268, allocations: 97.81 kB / 449.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.4269, allocations: 85.2 kB / 449.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.429, allocations: 1.103 MB / 450.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.429, allocations: 0 / 450.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.69e-05/0.4291, allocations: 43.59 kB / 450.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.4291, allocations: 20.38 kB / 450.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.4308, allocations: 0.7175 MB / 451.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00899/0.4397, allocations: 4.6 MB / 455.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.4414, allocations: 0.9002 MB / 456.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008395/0.4422, allocations: 359.8 kB / 457.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.649e-05/0.4422, allocations: 6.438 kB / 457.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/0.4423, allocations: 51.08 kB / 457.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.575e-06/0.4423, allocations: 0 / 457.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002136/0.4444, allocations: 0.8284 MB / 458.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003166/0.4448, allocations: 427.2 kB / 458.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005662/0.4504, allocations: 2.762 MB / 461.3 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002099/0.4506, allocations: 37.52 kB / 461.3 MB, free: 9.324 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009872/0.4516, allocations: 0.9002 MB / 462.2 MB, free: 8.543 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.4518, allocations: 161.8 kB / 462.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.4521, allocations: 129.1 kB / 462.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.4523, allocations: 327.5 kB / 462.8 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005941/0.4529, allocations: 259 kB / 463 MB, free: 7.879 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009072/0.4538, allocations: 0.5354 MB / 463.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.455, allocations: 0.6187 MB / 464.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.455, allocations: 1.969 kB / 464.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002198/0.4572, allocations: 0.8644 MB / 465.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.4573, allocations: 9.469 kB / 465.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.4573, allocations: 6 kB / 465.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.641e-05/0.4573, allocations: 8.594 kB / 465.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.4579, allocations: 158.9 kB / 465.2 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/0.4579, allocations: 12.81 kB / 465.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.4595, allocations: 166.6 kB / 465.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.4596, allocations: 26.5 kB / 465.4 MB, free: 6.367 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.001325/0.4609, allocations: 0.5561 MB / 466 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005886/0.4615, allocations: 188.8 kB / 466.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.4631, allocations: 0.7045 MB / 466.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4631, allocations: 2.594 kB / 466.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.4631, allocations: 0 / 466.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.4631, allocations: 11.89 kB / 466.9 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00401/0.4672, allocations: 2.12 MB / 469 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.4672, allocations: 1.188 kB / 469 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005243/0.4677, allocations: 116.4 kB / 469.1 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4677, allocations: 2.469 kB / 469.1 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.4677, allocations: 8.594 kB / 469.1 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.4677, allocations: 3.844 kB / 469.2 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4677, allocations: 5.625 kB / 469.2 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.4698, allocations: 1.053 MB / 470.2 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008475/0.4706, allocations: 422.5 kB / 470.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.4708, allocations: 13.5 kB / 470.6 MB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.4719, allocations: 143.8 kB / 470.8 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003246/0.4722, allocations: 152.7 kB / 470.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.744e-05/0.4723, allocations: 16.91 kB / 470.9 MB, free: 3.016 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003319/0.4756, allocations: 1.962 MB / 472.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4756, allocations: 0 / 472.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001301/0.4769, allocations: 319.3 kB / 473.2 MB, free: 0.8672 MB / 366.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.004323/0.4812, allocations: 1.976 MB / 475.2 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.4828, allocations: 0.5699 MB / 475.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.4828, allocations: 0 / 475.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007952/0.4836, allocations: 343.7 kB / 476.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.4859, allocations: 324.4 kB / 476.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03289/0.5187, allocations: 17.25 MB / 493.7 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.5201, allocations: 1.441 MB / 495.1 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.5211, allocations: 287.1 kB / 495.4 MB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.5222, allocations: 0.7023 MB / 496.1 MB, free: 9.746 MB / 398.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5222, allocations: 4 kB / 496.1 MB, free: 9.742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09269/0.6149, allocations: 39.11 MB / 0.5227 GB, free: 2.852 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.25, allocations: 3.984 kB / 0.5227 GB, free: 2.848 MB / 430.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv. Warning: Get data of variable energy2.y from file Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.144507352961227]