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.004585/0.004585, allocations: 101.7 kB / 15.73 MB, free: 6.488 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.001067/0.001066, allocations: 194.5 kB / 16.68 MB, free: 6.375 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.629/2.629, allocations: 437.1 MB / 0.7105 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 67.89 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3342, allocations: 151.6 MB / 1.166 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00298/0.3372, allocations: 1.562 MB / 1.168 GB, free: 5.699 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008154/0.338, allocations: 458.9 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.516e-05/0.3381, allocations: 4 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/0.3382, allocations: 3.938 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.388e-05/0.3383, allocations: 11.86 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.3385, allocations: 23.92 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.3386, allocations: 75.81 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.873e-05/0.3387, allocations: 12 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.3388, allocations: 27.92 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.523e-05/0.3389, allocations: 35.83 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.3389, allocations: 8 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.732e-05/0.339, allocations: 8 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.883e-05/0.339, allocations: 11.98 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.035e-05/0.3391, allocations: 27.86 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.3392, allocations: 74.58 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3392, allocations: 0 / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3392, allocations: 0 / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.3392, allocations: 4 kB / 1.168 GB, free: 4.926 MB / 0.92 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.0006074/0.3398, allocations: 376.1 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3399, allocations: 8.031 kB / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.3399, allocations: 34.75 kB / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.34, allocations: 8.922 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.3401, allocations: 168.3 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.3401, allocations: 4.375 kB / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.3402, allocations: 4.375 kB / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.3404, allocations: 101.6 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3404, allocations: 0 / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.3404, allocations: 4 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3404, allocations: 0 / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.3406, allocations: 43.97 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005475/0.3411, allocations: 324.6 kB / 1.169 GB, free: 3.723 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.3414, allocations: 102.6 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.362e-05/0.3415, allocations: 44.83 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.3415, allocations: 4 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.3418, allocations: 119.3 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.3418, allocations: 0 / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0003819/0.3422, allocations: 173.4 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.3423, allocations: 55.41 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.579e-05/0.3423, allocations: 105.8 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3424, allocations: 33.7 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.41e-05/0.3424, allocations: 84.38 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.3425, allocations: 35.69 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.83e-05/0.3425, allocations: 29.72 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3426, allocations: 326.8 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.797e-05/0.3427, allocations: 27.98 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.377e-05/0.3428, allocations: 57.62 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.343, allocations: 69.64 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.343, allocations: 0 / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001984/0.3432, allocations: 109.6 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3432, allocations: 4 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3432, allocations: 3.984 kB / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3432, allocations: 4 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.757e-05/0.3433, allocations: 11.94 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.3433, allocations: 0 / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.873e-05/0.3434, allocations: 11.98 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.3434, allocations: 4 kB / 1.171 GB, free: 2.238 MB / 0.92 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.751e-05/0.3435, allocations: 125.7 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.993e-05/0.3435, allocations: 11.89 kB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.3436, allocations: 16.38 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.3436, allocations: 0 / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3436, allocations: 0 / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3436, allocations: 7.969 kB / 1.171 GB, free: 2.07 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.3438, allocations: 193.5 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.3438, allocations: 4 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.981e-05/0.3439, allocations: 11.98 kB / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3439, allocations: 8 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3439, allocations: 0 / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3439, allocations: 0 / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3439, allocations: 0 / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.3443, allocations: 220.9 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.052e-05/0.3443, allocations: 84.95 kB / 1.171 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.3444, allocations: 8 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.865e-05/0.3444, allocations: 12.05 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.3445, allocations: 19.91 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3445, allocations: 4 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.72e-05/0.3446, allocations: 91.27 kB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3446, allocations: 0 / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002023/0.3448, allocations: 16 kB / 1.172 GB, free: 1.324 MB / 0.92 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.0006557/0.3455, allocations: 0.7536 MB / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000223/0.3457, allocations: 95.83 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3457, allocations: 0 / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.3458, allocations: 67.92 kB / 1.173 GB, free: 392 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.346, allocations: 11.98 kB / 1.173 GB, free: 380 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.3477, allocations: 1.493 MB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.3481, allocations: 0.6962 MB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.636e-05/0.3482, allocations: 8.656 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.3482, allocations: 23.42 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3482, allocations: 3.938 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.3689, allocations: 2.255 MB / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.323/8.692, allocations: 14.7 kB / 1.177 GB, free: 11.88 MB / 0.9356 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) "" 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