Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_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.005693/0.005694, allocations: 102 kB / 15.73 MB, free: 6 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.001242/0.001242, allocations: 193.8 kB / 16.68 MB, free: 5.922 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.588/2.588, allocations: 461.9 MB / 0.7348 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 63.91 kB / 1.054 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9253/0.9276, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002731/0.9303, allocations: 1.579 MB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007119/0.9311, allocations: 443 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.552e-05/0.9311, allocations: 0 / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.433e-05/0.9312, allocations: 3.938 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.271e-05/0.9313, allocations: 11.88 kB / 1.209 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002041/0.9315, allocations: 31.95 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.9316, allocations: 67.84 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.9317, allocations: 15.92 kB / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.9319, allocations: 31.91 kB / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.707e-05/0.932, allocations: 31.84 kB / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.932, allocations: 8 kB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.603e-05/0.932, allocations: 12 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.932, allocations: 11.98 kB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.879e-05/0.9321, allocations: 31.84 kB / 1.209 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.9322, allocations: 62.03 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.9322, allocations: 0 / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9322, allocations: 0 / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.9322, allocations: 0 / 1.21 GB, free: 11.22 MB / 0.9356 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.0005807/0.9328, allocations: 375.3 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.9329, allocations: 16.02 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.693e-05/0.9329, allocations: 34.75 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.933, allocations: 4.938 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.9331, allocations: 180.1 kB / 1.21 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.9331, allocations: 12.31 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.9331, allocations: 4.375 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.9333, allocations: 85.77 kB / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.9333, allocations: 0 / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.9334, allocations: 4 kB / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.9334, allocations: 0 / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.9335, allocations: 51.91 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.934, allocations: 316.7 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.9343, allocations: 102.5 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.204e-05/0.9344, allocations: 40.94 kB / 1.211 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.9344, allocations: 7.938 kB / 1.211 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.9347, allocations: 111.3 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.713e-06/0.9347, allocations: 0 / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.000374/0.935, allocations: 169.5 kB / 1.211 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.9351, allocations: 63.34 kB / 1.211 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.511e-05/0.9352, allocations: 109.8 kB / 1.211 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.9352, allocations: 37.69 kB / 1.211 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.937e-05/0.9352, allocations: 84.38 kB / 1.211 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.9353, allocations: 31.7 kB / 1.211 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.9354, allocations: 29.7 kB / 1.211 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.9355, allocations: 326.8 kB / 1.212 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.9355, allocations: 27.98 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.131e-05/0.9356, allocations: 45.7 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.9358, allocations: 69.69 kB / 1.212 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.9358, allocations: 0 / 1.212 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002031/0.936, allocations: 113.5 kB / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.936, allocations: 4 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.936, allocations: 368 / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.936, allocations: 7.984 kB / 1.212 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.79e-05/0.9361, allocations: 19.92 kB / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.9361, allocations: 4 kB / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.781e-05/0.9362, allocations: 8 kB / 1.212 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.9362, allocations: 11.97 kB / 1.212 GB, free: 8.516 MB / 0.9356 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.597e-05/0.9363, allocations: 120 kB / 1.212 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.9364, allocations: 7.906 kB / 1.212 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.9364, allocations: 16.38 kB / 1.212 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.9364, allocations: 7.938 kB / 1.212 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.9364, allocations: 0 / 1.212 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.9364, allocations: 3.984 kB / 1.212 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.9366, allocations: 197.5 kB / 1.212 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.9366, allocations: 4 kB / 1.212 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.409e-05/0.9367, allocations: 7.938 kB / 1.212 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.9367, allocations: 7.984 kB / 1.212 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.9367, allocations: 4 kB / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.9367, allocations: 0 / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9367, allocations: 0 / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003604/0.9371, allocations: 225.4 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.9371, allocations: 81.02 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.9372, allocations: 8.031 kB / 1.213 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.855e-05/0.9372, allocations: 7.984 kB / 1.213 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.26e-05/0.9373, allocations: 7.984 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.9373, allocations: 11.98 kB / 1.213 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.162e-05/0.9374, allocations: 91.34 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9374, allocations: 0 / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002023/0.9376, allocations: 16 kB / 1.213 GB, free: 7.609 MB / 0.9356 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.000621/0.9382, allocations: 0.7607 MB / 1.213 GB, free: 6.82 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002139/0.9384, allocations: 91.97 kB / 1.214 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.9384, allocations: 0 / 1.214 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.9386, allocations: 71.91 kB / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.9388, allocations: 11.98 kB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.9403, allocations: 1.486 MB / 1.215 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.9405, allocations: 0.6962 MB / 1.216 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.503e-05/0.9406, allocations: 12.66 kB / 1.216 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.9406, allocations: 19.44 kB / 1.216 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of SimCode: time 3.11e-07/0.9406, allocations: 0 / 1.216 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.9621, allocations: 2.308 MB / 1.218 GB, free: 2.152 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.225/9.187, allocations: 4.062 kB / 1.218 GB, free: 2.148 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:der(soc.SOC),hf.k,hf.u,hf.y,q.amplitude,q.f,q.offset,q.phase,q.startTime,q.y,soc.E_nominal,soc.QEff_flow,soc.Q_flow,soc.SOC,soc.SOC_start,soc.charged,soc.discharged,soc.suspend,time