Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) 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(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007181/0.007181, allocations: 96.98 kB / 15.73 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002061/0.002061, allocations: 188.2 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.853/2.853, allocations: 469.8 MB / 0.7425 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 63.91 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2723, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00268/0.275, allocations: 1.568 MB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007163/0.2757, allocations: 443 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.971e-05/0.2758, allocations: 4 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.534e-05/0.2758, allocations: 3.938 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.712e-05/0.2759, allocations: 7.922 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001721/0.276, allocations: 31.91 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.2762, allocations: 75.77 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.273e-05/0.2763, allocations: 11.98 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.94e-05/0.2764, allocations: 31.92 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.831e-05/0.2764, allocations: 39.83 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.2765, allocations: 4 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.2765, allocations: 8 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.2765, allocations: 15.92 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.255e-05/0.2766, allocations: 27.86 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.2767, allocations: 67.77 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2767, allocations: 0 / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2767, allocations: 0 / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.696e-06/0.2767, allocations: 0 / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005754/0.2773, allocations: 375.3 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2774, allocations: 8.031 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.804e-05/0.2774, allocations: 42.67 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.2774, allocations: 12.89 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.2776, allocations: 168.3 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.2776, allocations: 12.3 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.2776, allocations: 8.312 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.2778, allocations: 89.77 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2779, allocations: 4 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.2779, allocations: 0 / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2779, allocations: 0 / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.278, allocations: 43.97 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005499/0.2786, allocations: 328.6 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.2789, allocations: 98.55 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.279, allocations: 44.84 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.279, allocations: 0 / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.2792, allocations: 119.3 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.582e-06/0.2793, allocations: 4 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004049/0.2797, allocations: 169.5 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.2797, allocations: 55.41 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/0.2798, allocations: 105.8 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.2799, allocations: 33.7 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.921e-05/0.2799, allocations: 88.36 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.2799, allocations: 27.75 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.469e-05/0.28, allocations: 33.7 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.2802, allocations: 326.8 kB / 1.225 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.421e-05/0.2803, allocations: 27.98 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.541e-05/0.2804, allocations: 49.64 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.2805, allocations: 62.14 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2805, allocations: 0 / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002462/0.2808, allocations: 129.4 kB / 1.225 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2808, allocations: 4 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.2808, allocations: 0 / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2808, allocations: 4 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-05/0.2809, allocations: 11.98 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.2809, allocations: 0 / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.114e-05/0.281, allocations: 8 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.281, allocations: 7.984 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001039/0.2811, allocations: 127.3 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.2811, allocations: 7.953 kB / 1.225 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.2812, allocations: 16.38 kB / 1.225 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2812, allocations: 3.938 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.2812, allocations: 0 / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2812, allocations: 3.984 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.2814, allocations: 193.7 kB / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2814, allocations: 4 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.543e-05/0.2815, allocations: 8 kB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.2815, allocations: 4 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.2815, allocations: 7.984 kB / 1.225 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.2815, allocations: 4 kB / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2815, allocations: 0 / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004042/0.2819, allocations: 220.8 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.282, allocations: 88.98 kB / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.282, allocations: 8.031 kB / 1.226 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.2821, allocations: 12.05 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.2822, allocations: 11.98 kB / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.2822, allocations: 7.984 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.066e-05/0.2823, allocations: 87.28 kB / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2823, allocations: 0 / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002145/0.2825, allocations: 20 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000736/0.2832, allocations: 0.7573 MB / 1.226 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002351/0.2835, allocations: 91.83 kB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.2835, allocations: 4 kB / 1.226 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.2836, allocations: 63.97 kB / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/0.2838, allocations: 11.98 kB / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.2855, allocations: 1.511 MB / 1.228 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.2859, allocations: 0.6924 MB / 1.229 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.421e-05/0.2859, allocations: 4.672 kB / 1.229 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.447e-05/0.286, allocations: 27.42 kB / 1.229 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.286, allocations: 0 / 1.229 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.3096, allocations: 2.262 MB / 1.231 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.051, allocations: 7.922 kB / 1.231 GB, free: 2.875 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 Error: Could not read variable soc.Q_flow in file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:time,soc.SOC