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.007756/0.007756, allocations: 101.4 kB / 15.73 MB, free: 6.023 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.001791/0.001791, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.727/2.727, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.91 kB / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3237, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002973/0.3267, allocations: 1.56 MB / 1.209 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007748/0.3275, allocations: 451.3 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.816e-05/0.3276, allocations: 0 / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.3277, allocations: 3.938 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.535e-05/0.3278, allocations: 11.92 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.328, allocations: 27.91 kB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.3281, allocations: 71.77 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3282, allocations: 19.98 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.3283, allocations: 27.92 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.48e-05/0.3284, allocations: 27.91 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.3285, allocations: 11.94 kB / 1.209 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.518e-05/0.3285, allocations: 4 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.276e-05/0.3285, allocations: 23.91 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.3286, allocations: 27.86 kB / 1.209 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.3287, allocations: 72.05 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.3287, allocations: 0 / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3288, allocations: 7.938 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.3288, allocations: 0 / 1.21 GB, free: 7.777 MB / 0.9669 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.0006018/0.3294, allocations: 367.3 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3294, allocations: 12.62 kB / 1.21 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.3295, allocations: 34.75 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.3295, allocations: 8.844 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.3296, allocations: 168.4 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.3297, allocations: 8.312 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.3297, allocations: 12.38 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001916/0.3299, allocations: 85.7 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3299, allocations: 0 / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.33, allocations: 7.984 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.33, allocations: 7.984 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.3301, allocations: 39.97 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005555/0.3307, allocations: 328.6 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.3309, allocations: 98.55 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.847e-05/0.331, allocations: 48.83 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.331, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.3314, allocations: 115.5 kB / 1.211 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.3314, allocations: 3.938 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.000382/0.3318, allocations: 173.5 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.3318, allocations: 55.39 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.011e-05/0.3319, allocations: 109.8 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.3319, allocations: 29.7 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.332, allocations: 88.38 kB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.332, allocations: 31.61 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.807e-05/0.3321, allocations: 25.72 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3322, allocations: 322.8 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.352e-05/0.3323, allocations: 31.98 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.418e-05/0.3323, allocations: 45.7 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.3325, allocations: 65.62 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3325, allocations: 4 kB / 1.212 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002065/0.3327, allocations: 113.5 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3328, allocations: 8 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.3328, allocations: 0 / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3328, allocations: 0 / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.5e-05/0.3329, allocations: 11.98 kB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3329, allocations: 4 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.22e-05/0.333, allocations: 15.92 kB / 1.212 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.333, allocations: 8 kB / 1.212 GB, free: 5.094 MB / 0.9669 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 9.03e-05/0.3331, allocations: 121.7 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.3331, allocations: 7.906 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.3332, allocations: 16.36 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3332, allocations: 7.938 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3332, allocations: 0 / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.3332, allocations: 0 / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.3333, allocations: 197.5 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3334, allocations: 0 / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.869e-05/0.3334, allocations: 15.98 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3335, allocations: 0 / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3335, allocations: 7.938 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3335, allocations: 0 / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3335, allocations: 0 / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.3338, allocations: 216.8 kB / 1.212 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.253e-05/0.3339, allocations: 85.05 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.3339, allocations: 12.06 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.334, allocations: 7.984 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.569e-05/0.3341, allocations: 15.98 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.3341, allocations: 8.031 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.976e-05/0.3341, allocations: 83.59 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3341, allocations: 3.938 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002048/0.3343, allocations: 23.98 kB / 1.213 GB, free: 4.18 MB / 0.9669 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.000648/0.335, allocations: 0.7652 MB / 1.213 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002195/0.3352, allocations: 91.83 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3352, allocations: 0 / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.3354, allocations: 59.98 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.3356, allocations: 22.84 kB / 1.214 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.3372, allocations: 1.507 MB / 1.215 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3375, allocations: 0.6885 MB / 1.216 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.596e-05/0.3375, allocations: 12.73 kB / 1.216 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.3376, allocations: 19.44 kB / 1.216 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3376, allocations: 8 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.3573, allocations: 2.301 MB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.595, allocations: 15.2 kB / 1.218 GB, free: 14.7 MB / 0.9825 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