Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_10_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.001273/0.001273, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.257/1.257, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.386/2.386, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 63.89 kB / 0.8694 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4999/0.5022, allocations: 151.6 MB / 1.017 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002527/0.5048, allocations: 1.558 MB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006579/0.5054, allocations: 451 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.5055, allocations: 0 / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.949e-05/0.5055, allocations: 7.922 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.369e-05/0.5056, allocations: 3.938 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.5058, allocations: 35.89 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.312e-05/0.5059, allocations: 71.78 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.977e-05/0.506, allocations: 15.89 kB / 1.02 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.995e-05/0.5061, allocations: 35.92 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.5062, allocations: 31.89 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.5062, allocations: 4 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.5062, allocations: 8 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.558e-05/0.5062, allocations: 15.92 kB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.928e-05/0.5063, allocations: 27.88 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.807e-05/0.5064, allocations: 70.02 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.5064, allocations: 0 / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5064, allocations: 0 / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.5064, allocations: 0 / 1.02 GB, free: 116 kB / 0.7637 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.0005017/0.5069, allocations: 375.4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.507, allocations: 8.031 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.602e-05/0.507, allocations: 38.73 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.133e-05/0.507, allocations: 8.844 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.734e-05/0.5071, allocations: 172.2 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.5072, allocations: 8.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.5072, allocations: 12.36 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.5074, allocations: 89.7 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5074, allocations: 4 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.5074, allocations: 0 / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.5074, allocations: 0 / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.5076, allocations: 43.91 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.5081, allocations: 320.8 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.5083, allocations: 110.5 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.959e-05/0.5084, allocations: 40.84 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.5085, allocations: 4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.5087, allocations: 111.3 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.5087, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003674/0.5091, allocations: 181.3 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.5091, allocations: 55.41 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.949e-05/0.5092, allocations: 113.8 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.5092, allocations: 33.7 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.5093, allocations: 88.27 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.5093, allocations: 27.81 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.793e-05/0.5094, allocations: 37.7 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.5095, allocations: 314.8 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.781e-05/0.5096, allocations: 31.98 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.33e-05/0.5097, allocations: 53.56 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.5098, allocations: 73.62 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5098, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002053/0.51, allocations: 113.5 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.51, allocations: 7.938 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.51, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.5101, allocations: 4 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.405e-05/0.5101, allocations: 8 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.5102, allocations: 3.984 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.5102, allocations: 8 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.5103, allocations: 8 kB / 1.022 GB, free: 13.41 MB / 0.7794 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 8.588e-05/0.5104, allocations: 124.9 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.5104, allocations: 15.84 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.5104, allocations: 8.375 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5104, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5104, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.5104, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.5106, allocations: 213.4 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.5106, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.271e-05/0.5107, allocations: 8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5107, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.5107, allocations: 7.984 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5107, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5107, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.5111, allocations: 220.9 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.5111, allocations: 88.95 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.5111, allocations: 8.016 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.147e-05/0.5112, allocations: 8 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/0.5113, allocations: 11.97 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.5113, allocations: 8 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.15e-05/0.5113, allocations: 87.27 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.81e-07/0.5113, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002012/0.5115, allocations: 20 kB / 1.023 GB, free: 12.5 MB / 0.7794 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.0005897/0.5121, allocations: 0.7614 MB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002169/0.5124, allocations: 95.83 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5124, allocations: 64 / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.5125, allocations: 67.97 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.5127, allocations: 11.98 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.5141, allocations: 1.483 MB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.5144, allocations: 0.6924 MB / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.001e-05/0.5144, allocations: 12.66 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.5145, allocations: 23.44 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.5145, allocations: 0 / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.258/0.7725, allocations: 2.213 MB / 1.028 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.636/8.408, allocations: 14.34 kB / 1.028 GB, free: 7.086 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches