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.001675/0.001675, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002071/0.002071, allocations: 183.5 kB / 23.7 MB, free: 4.191 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.397/1.397, allocations: 225.7 MB / 252.5 MB, free: 12.87 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.001598/0.001598, allocations: 51.91 kB / 370.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2671, allocations: 52.19 MB / 422.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007506/0.2746, allocations: 5.158 MB / 427.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004366/0.2789, allocations: 2.445 MB / 430.2 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006521/0.2796, allocations: 31.81 kB / 430.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001731/0.2813, allocations: 0.7466 MB / 431 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.2825, allocations: 0.5127 MB / 431.5 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.2837, allocations: 0.5188 MB / 432 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00187/0.2855, allocations: 1.59 MB / 433.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006413/0.2862, allocations: 375 kB / 433.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008817/0.2871, allocations: 0.6268 MB / 434.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2881, allocations: 0.7119 MB / 435.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.2883, allocations: 132 kB / 435.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004474/0.2887, allocations: 211.9 kB / 435.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005692/0.2893, allocations: 0.6426 MB / 436.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006735/0.29, allocations: 0.7186 MB / 437 MB, free: 72 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002509/0.2925, allocations: 2.517 MB / 439.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2925, allocations: 0 / 439.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2925, allocations: 0 / 439.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.345e-05/0.2925, allocations: 0 / 439.5 MB, free: 13.54 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.005805/0.2983, allocations: 2.565 MB / 442.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.2984, allocations: 8.031 kB / 442.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/0.2986, allocations: 139.5 kB / 442.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003796/0.2989, allocations: 239.4 kB / 442.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002633/0.3016, allocations: 1.49 MB / 443.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.3017, allocations: 151.4 kB / 444.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.3018, allocations: 84 kB / 444.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.304, allocations: 1.706 MB / 445.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.304, allocations: 0 / 445.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.153e-05/0.3041, allocations: 40 kB / 445.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.3041, allocations: 23.98 kB / 445.9 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.3055, allocations: 0.7221 MB / 446.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006917/0.3124, allocations: 4.167 MB / 450.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.3135, allocations: 0.5263 MB / 451.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007437/0.3143, allocations: 358 kB / 451.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.3143, allocations: 4 kB / 451.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.3144, allocations: 46.55 kB / 451.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.615e-06/0.3144, allocations: 0 / 451.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00182/0.3162, allocations: 0.8171 MB / 452.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002411/0.3164, allocations: 439.1 kB / 453 MB, free: 15.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003835/0.3203, allocations: 2.746 MB / 455.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.984e-05/0.3204, allocations: 37.7 kB / 455.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008324/0.3212, allocations: 0.8873 MB / 456.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.3214, allocations: 162.6 kB / 456.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.3216, allocations: 126.2 kB / 456.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3218, allocations: 334 kB / 457.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005712/0.3223, allocations: 257.1 kB / 457.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.3234, allocations: 0.8799 MB / 458.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.3244, allocations: 0.6211 MB / 459 MB, free: 9.043 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.3244, allocations: 0 / 459 MB, free: 9.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001948/0.3264, allocations: 0.8659 MB / 459.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.3264, allocations: 8 kB / 459.9 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3264, allocations: 4 kB / 459.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-05/0.3265, allocations: 8 kB / 459.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/0.3271, allocations: 159.7 kB / 460.1 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.879e-05/0.3271, allocations: 15.92 kB / 460.1 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.3284, allocations: 167.5 kB / 460.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/0.3284, allocations: 24 kB / 460.3 MB, free: 7.789 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.0009555/0.3294, allocations: 0.5561 MB / 460.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.3296, allocations: 190.8 kB / 461 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.3312, allocations: 0.6922 MB / 461.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.3312, allocations: 11.92 kB / 461.7 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3312, allocations: 4 kB / 461.7 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.3312, allocations: 3.984 kB / 461.7 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003541/0.3347, allocations: 1.875 MB / 463.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.3348, allocations: 4 kB / 463.6 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004903/0.3352, allocations: 111.8 kB / 463.7 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.3353, allocations: 0 / 463.7 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.3353, allocations: 16.09 kB / 463.7 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.3353, allocations: 0 / 463.7 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.3353, allocations: 4 kB / 463.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/0.3372, allocations: 1.06 MB / 464.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008401/0.3381, allocations: 342.6 kB / 465.1 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.3382, allocations: 12 kB / 465.1 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.3393, allocations: 135.8 kB / 465.3 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003386/0.3396, allocations: 159.7 kB / 465.4 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/0.3396, allocations: 23.94 kB / 465.4 MB, free: 2.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002802/0.3424, allocations: 1.951 MB / 467.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3424, allocations: 0 / 467.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009102/0.3434, allocations: 311.4 kB / 467.7 MB, free: 220 kB / 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.003986/0.3473, allocations: 1.999 MB / 469.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.3488, allocations: 0.5656 MB / 470.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/0.3488, allocations: 4 kB / 470.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006536/0.3494, allocations: 336.6 kB / 470.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.351, allocations: 332.5 kB / 470.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02552/0.3765, allocations: 17.2 MB / 488.1 MB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009753/0.3775, allocations: 0.8453 MB / 489 MB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008868/0.3783, allocations: 295.1 kB / 489.2 MB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00093/0.3793, allocations: 0.6945 MB / 489.9 MB, free: 9.734 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3793, allocations: 0 / 489.9 MB, free: 9.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08838/0.4677, allocations: 41.66 MB / 0.5191 GB, free: 384 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.19, allocations: 0 / 0.5191 GB, free: 384 kB / 430.1 MB " [Timeout remaining time 647] (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: 16.79568459885195]