Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",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.001461/0.001461, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001591/0.001591, allocations: 194 kB / 16.14 MB, free: 6.652 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.181/1.181, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.317/2.317, allocations: 461.8 MB / 0.7342 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 62.47 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2138, allocations: 157.4 MB / 1.052 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002286/0.2161, allocations: 1.606 MB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009877/0.2171, allocations: 0.7713 MB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.625e-05/0.2171, allocations: 0 / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.2172, allocations: 3.938 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.055e-05/0.2172, allocations: 23.84 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.2175, allocations: 67.8 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.438e-05/0.2176, allocations: 47.8 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.909e-05/0.2176, allocations: 8 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.203e-05/0.2177, allocations: 23.92 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.719e-05/0.2178, allocations: 35.83 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.2178, allocations: 4 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.2179, allocations: 63.95 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.218, allocations: 0 / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.53e-05/0.218, allocations: 27.84 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.2181, allocations: 95.98 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2182, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.91e-07/0.2182, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.116e-06/0.2182, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003801/0.2185, allocations: 379.3 kB / 1.055 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.2186, allocations: 11.97 kB / 1.055 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.2186, allocations: 42.67 kB / 1.055 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.2189, allocations: 24.81 kB / 1.055 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.789e-05/0.219, allocations: 168.3 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-06/0.219, allocations: 384 / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.219, allocations: 384 / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.2193, allocations: 89.75 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.839e-06/0.2193, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.2193, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.2193, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/0.2196, allocations: 67.94 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004189/0.22, allocations: 328.7 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.2202, allocations: 70.53 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.2204, allocations: 40.92 kB / 1.056 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.2204, allocations: 4 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.659e-05/0.2204, allocations: 30.56 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.184e-06/0.2204, allocations: 3.984 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004845/0.2209, allocations: 141.5 kB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.2209, allocations: 51.41 kB / 1.056 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.858e-05/0.221, allocations: 125.7 kB / 1.056 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.221, allocations: 29.69 kB / 1.056 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.587e-05/0.2211, allocations: 88.14 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.2211, allocations: 11.84 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.2212, allocations: 17.7 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.2213, allocations: 330.8 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.2214, allocations: 27.98 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.2215, allocations: 27.97 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.2218, allocations: 64.81 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2218, allocations: 4 kB / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002974/0.2221, allocations: 113.5 kB / 1.057 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.2221, allocations: 4 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2221, allocations: 4 kB / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.855e-06/0.2221, allocations: 0 / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.2223, allocations: 19.97 kB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.2223, allocations: 4 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.146e-05/0.2224, allocations: 4 kB / 1.057 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.2224, allocations: 7.984 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.48e-05/0.2225, allocations: 113.8 kB / 1.057 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.2225, allocations: 4 kB / 1.057 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.534e-05/0.2225, allocations: 3.906 kB / 1.057 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2225, allocations: 4 kB / 1.057 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2225, allocations: 4 kB / 1.057 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.2225, allocations: 0 / 1.057 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2227, allocations: 201.4 kB / 1.057 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2227, allocations: 0 / 1.057 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.2229, allocations: 15.98 kB / 1.057 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2229, allocations: 0 / 1.057 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.2229, allocations: 3.984 kB / 1.057 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.2229, allocations: 3.938 kB / 1.057 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2229, allocations: 4 kB / 1.057 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.2232, allocations: 199.4 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.2233, allocations: 85.02 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.2233, allocations: 0 / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.2234, allocations: 7.938 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.881e-05/0.2234, allocations: 11.98 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.2235, allocations: 4 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.293e-05/0.2235, allocations: 91.27 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2235, allocations: 0 / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002353/0.2238, allocations: 27.98 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0006162/0.2244, allocations: 0.7634 MB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.2247, allocations: 75.97 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2247, allocations: 0 / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.2248, allocations: 43.97 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.225, allocations: 1.094 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004793/0.2255, allocations: 214.5 kB / 1.059 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.2258, allocations: 0.6965 MB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.433e-05/0.2259, allocations: 15.98 kB / 1.06 GB, free: 196 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/0.2259, allocations: 23.42 kB / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.2259, allocations: 0 / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1992/0.4251, allocations: 1.95 MB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/0.4254, allocations: 210.8 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.281, allocations: 0 / 1.062 GB, free: 14.08 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches