Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.LMTDStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_9_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.005025/0.005025, allocations: 103.4 kB / 15.73 MB, free: 6.035 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.001119/0.001119, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.435/2.435, allocations: 390.3 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.84 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2649, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.002974/0.268, allocations: 1.529 MB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2693, allocations: 0.7542 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.743e-05/0.2694, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.987e-05/0.2694, allocations: 7.938 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.43e-05/0.2696, allocations: 19.8 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.27, allocations: 85.91 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.2701, allocations: 51.8 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.2703, allocations: 23.95 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.2704, allocations: 19.94 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.697e-05/0.2705, allocations: 23.91 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.2705, allocations: 7.938 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.2706, allocations: 75.88 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.555e-05/0.2707, allocations: 4 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.505e-05/0.2707, allocations: 23.86 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.2709, allocations: 98.56 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2709, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2709, allocations: 3.938 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2709, allocations: 4 kB / 1.09 GB, free: 15.25 MB / 0.8575 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.0004618/0.2714, allocations: 380.1 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2715, allocations: 16.02 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.2715, allocations: 30.75 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.2718, allocations: 24.81 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.2719, allocations: 168.3 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.272, allocations: 4.375 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.272, allocations: 8.375 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.2722, allocations: 89.67 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2723, allocations: 0 / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.2723, allocations: 0 / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.2723, allocations: 4 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002654/0.2725, allocations: 67.94 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004879/0.273, allocations: 320.5 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.2733, allocations: 70.53 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.2735, allocations: 44.86 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.2735, allocations: 4 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.2735, allocations: 34.56 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 5.08e-06/0.2735, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005214/0.2741, allocations: 137.5 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.2741, allocations: 55.41 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.767e-05/0.2742, allocations: 117.8 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.2742, allocations: 25.7 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.637e-05/0.2743, allocations: 96.06 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.2743, allocations: 7.906 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-05/0.2743, allocations: 17.7 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.2745, allocations: 330.8 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.2746, allocations: 35.91 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.2747, allocations: 23.98 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.275, allocations: 72.81 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.275, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003183/0.2753, allocations: 105.5 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2753, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2754, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.2754, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.2755, allocations: 23.97 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2755, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.412e-05/0.2756, allocations: 7.938 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.2757, allocations: 7.984 kB / 1.092 GB, free: 12.73 MB / 0.8575 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 8.014e-05/0.2757, allocations: 113.8 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.2758, allocations: 7.906 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.2758, allocations: 11.84 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2758, allocations: 4 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2758, allocations: 0 / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2759, allocations: 3.984 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.276, allocations: 189.6 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2761, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.2762, allocations: 15.98 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2762, allocations: 336 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.2762, allocations: 3.984 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2762, allocations: 4 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2762, allocations: 3.938 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/0.2766, allocations: 211.3 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.2766, allocations: 85.02 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.2767, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.2768, allocations: 7.984 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.674e-05/0.2768, allocations: 8 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.2769, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.819e-05/0.2769, allocations: 91.27 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2769, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002708/0.2772, allocations: 35.92 kB / 1.093 GB, free: 11.84 MB / 0.8575 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.0006911/0.2779, allocations: 0.758 MB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003233/0.2782, allocations: 75.88 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2782, allocations: 0 / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.2784, allocations: 39.97 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.2787, allocations: 2.016 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005628/0.2793, allocations: 212.8 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.2795, allocations: 0.6807 MB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.443e-05/0.2796, allocations: 15.98 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.673e-05/0.2796, allocations: 27.42 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of SimCode: time 1.764e-06/0.2796, allocations: 0 / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.2977, allocations: 2.166 MB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.46/7.757, allocations: 14.39 kB / 1.097 GB, free: 7.867 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches