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.001254/0.001254, allocations: 124.4 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.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.001385/0.001385, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.444/1.444, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.0015/0.0015, allocations: 51.92 kB / 373 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1173, allocations: 53.33 MB / 426.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2309/0.3483, allocations: 5.867 MB / 432.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.3522, allocations: 2.749 MB / 434.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000464/0.3527, allocations: 28.38 kB / 434.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.3542, allocations: 0.774 MB / 435.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.3552, allocations: 0.5551 MB / 436.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.3562, allocations: 0.5124 MB / 436.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002272/0.3585, allocations: 1.601 MB / 438.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000772/0.3593, allocations: 431.7 kB / 438.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3603, allocations: 0.6372 MB / 439.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008835/0.3612, allocations: 0.7715 MB / 440.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.3614, allocations: 133.6 kB / 440.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004246/0.3619, allocations: 203.7 kB / 440.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005548/0.3624, allocations: 0.656 MB / 441.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007299/0.3631, allocations: 0.9204 MB / 442.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003048/0.3662, allocations: 2.502 MB / 444.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3662, allocations: 3.203 kB / 444.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3662, allocations: 0 / 444.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.055e-05/0.3662, allocations: 3.938 kB / 444.6 MB, free: 3.512 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.005462/0.3717, allocations: 2.651 MB / 447.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3717, allocations: 8.688 kB / 447.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.3719, allocations: 138.6 kB / 447.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003988/0.3723, allocations: 232.6 kB / 447.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002489/0.3748, allocations: 1.571 MB / 449.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.3749, allocations: 107.2 kB / 449.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.375, allocations: 83.16 kB / 449.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.3768, allocations: 1.1 MB / 450.5 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.3768, allocations: 2.094 kB / 450.5 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-05/0.3769, allocations: 38.22 kB / 450.6 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.3769, allocations: 20.78 kB / 450.6 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.3782, allocations: 0.7226 MB / 451.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007844/0.3861, allocations: 4.602 MB / 455.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.3875, allocations: 0.8964 MB / 456.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007573/0.3882, allocations: 355.8 kB / 457.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.961e-05/0.3883, allocations: 7.516 kB / 457.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.3883, allocations: 52.22 kB / 457.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.575e-06/0.3883, allocations: 0 / 457.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002172/0.3905, allocations: 0.8241 MB / 458 MB, free: 11.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002489/0.3907, allocations: 429.1 kB / 458.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004387/0.3951, allocations: 2.763 MB / 461.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.3953, allocations: 34.27 kB / 461.2 MB, free: 9.562 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008744/0.3961, allocations: 0.8963 MB / 462.1 MB, free: 8.785 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.3963, allocations: 166.5 kB / 462.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/0.3965, allocations: 124.3 kB / 462.4 MB, free: 8.566 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3967, allocations: 331.5 kB / 462.7 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.3973, allocations: 254.8 kB / 463 MB, free: 8.121 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007882/0.398, allocations: 0.5393 MB / 463.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.3991, allocations: 0.6158 MB / 464.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3991, allocations: 1.25 kB / 464.2 MB, free: 7.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001969/0.4011, allocations: 0.8645 MB / 465 MB, free: 6.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.4011, allocations: 12 kB / 465 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4011, allocations: 5.562 kB / 465 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.4011, allocations: 8.625 kB / 465 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006043/0.4017, allocations: 158.6 kB / 465.2 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.4018, allocations: 14.16 kB / 465.2 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.4031, allocations: 160.6 kB / 465.4 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.085e-05/0.4032, allocations: 26.62 kB / 465.4 MB, free: 6.613 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.001051/0.4042, allocations: 0.5601 MB / 466 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003874/0.4046, allocations: 188.6 kB / 466.1 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.4061, allocations: 0.7003 MB / 466.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.4061, allocations: 8.562 kB / 466.8 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4061, allocations: 4 kB / 466.8 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4061, allocations: 0 / 466.8 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.4097, allocations: 2.129 MB / 469 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4097, allocations: 4.25 kB / 469 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.4102, allocations: 113.2 kB / 469.1 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.4102, allocations: 1.312 kB / 469.1 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.936e-05/0.4102, allocations: 12.66 kB / 469.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.4102, allocations: 3.344 kB / 469.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4102, allocations: 0 / 469.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.4122, allocations: 1.054 MB / 470.2 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00076/0.413, allocations: 424.6 kB / 470.6 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001952/0.4132, allocations: 10.22 kB / 470.6 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.4142, allocations: 147.7 kB / 470.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003279/0.4145, allocations: 152.3 kB / 470.9 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.4146, allocations: 16.2 kB / 470.9 MB, free: 3.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00314/0.4177, allocations: 1.971 MB / 472.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4177, allocations: 0 / 472.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001243/0.419, allocations: 315.4 kB / 473.2 MB, free: 1.133 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.004113/0.4231, allocations: 1.979 MB / 475.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.4245, allocations: 0.5729 MB / 475.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.4245, allocations: 0 / 475.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006731/0.4252, allocations: 336.4 kB / 476.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.4268, allocations: 318 kB / 476.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02909/0.4559, allocations: 17.26 MB / 493.6 MB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.4571, allocations: 1.433 MB / 495.1 MB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009295/0.458, allocations: 295 kB / 495.3 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009876/0.459, allocations: 0.7062 MB / 496.1 MB, free: 10.03 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.459, allocations: 0 / 496.1 MB, free: 10.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08566/0.5446, allocations: 39.12 MB / 0.5226 GB, free: 3.176 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.73, allocations: 20.03 kB / 0.5227 GB, free: 3.156 MB / 430.1 MB " [Timeout remaining time 648] (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: 15.334692071002792]