Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007814/0.007815, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001533/0.001533, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.48/1.48, allocations: 222.9 MB / 240.3 MB, free: 15.15 MB / 206.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.188/2.188, allocations: 390.2 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 67.89 kB / 0.9509 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8266/0.828, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002466/0.8305, allocations: 1.578 MB / 1.089 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009471/0.8314, allocations: 0.5941 MB / 1.09 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.665e-05/0.8315, allocations: 4.75 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.78e-05/0.8316, allocations: 6.203 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.521e-05/0.8317, allocations: 14.66 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.832, allocations: 48.2 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.8321, allocations: 54.39 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.8323, allocations: 13.33 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.51e-05/0.8324, allocations: 23.5 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.057e-05/0.8325, allocations: 20.45 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.8325, allocations: 8.391 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.8326, allocations: 56.7 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.862e-05/0.8327, allocations: 24.47 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.22e-05/0.8328, allocations: 23.52 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.833, allocations: 93.92 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.8331, allocations: 0.875 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.845e-06/0.8331, allocations: 0 / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.898e-06/0.8331, allocations: 0.5625 kB / 1.09 GB, free: 3.812 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007557/0.8339, allocations: 398.2 kB / 1.091 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.8339, allocations: 9.266 kB / 1.091 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.8351, allocations: 213.2 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.8354, allocations: 186.3 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.194e-05/0.8355, allocations: 36.33 kB / 1.091 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.8355, allocations: 10.38 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.8362, allocations: 165.8 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.8362, allocations: 4.75 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.8363, allocations: 4 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.8363, allocations: 1.594 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000906/0.8372, allocations: 234.1 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.8386, allocations: 0.5105 MB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008338/0.8395, allocations: 243.2 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/0.8399, allocations: 116.8 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.8399, allocations: 0 / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.84, allocations: 32.19 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 3.417e-06/0.84, allocations: 4 kB / 1.093 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.001408/0.8414, allocations: 371.4 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.8415, allocations: 57.05 kB / 1.093 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.8417, allocations: 173 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.8417, allocations: 25.7 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/0.8418, allocations: 104 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.8418, allocations: 13.33 kB / 1.093 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.068e-05/0.8419, allocations: 19.52 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.842, allocations: 320.5 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.8423, allocations: 111.4 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/0.8427, allocations: 118.3 kB / 1.094 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.8433, allocations: 201.2 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.8433, allocations: 0.9375 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0007779/0.8441, allocations: 258.5 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.8442, allocations: 5.656 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.8442, allocations: 0 / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.8442, allocations: 1.766 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.8445, allocations: 46.27 kB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.8445, allocations: 5.359 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.8447, allocations: 37.59 kB / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.8447, allocations: 4.078 kB / 1.094 GB, free: 1.723 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 (2): * Single equations (assignments): 2 * 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.203e-05/0.8448, allocations: 121.8 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.18e-05/0.8448, allocations: 8.703 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.8449, allocations: 12.81 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.8449, allocations: 4.516 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.8449, allocations: 5.234 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.8449, allocations: 0.7812 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.8452, allocations: 245.2 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8452, allocations: 0.8438 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002031/0.8454, allocations: 47.17 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.8454, allocations: 1.672 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.8454, allocations: 3.688 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.8454, allocations: 0.8438 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.8454, allocations: 7.875 kB / 1.095 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007105/0.8462, allocations: 350.4 kB / 1.095 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.696e-05/0.8462, allocations: 85.98 kB / 1.095 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.8462, allocations: 5.516 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.8464, allocations: 37.61 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/0.8465, allocations: 5.672 kB / 1.095 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.8465, allocations: 4.859 kB / 1.095 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.341e-05/0.8466, allocations: 127.8 kB / 1.095 GB, free: 1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8466, allocations: 0 / 1.095 GB, free: 1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002771/0.8469, allocations: 16.22 kB / 1.095 GB, free: 1 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 (2): * Single equations (assignments): 2 * 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.0001541/0.847, allocations: 109 kB / 1.095 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000714/0.8478, allocations: 235.2 kB / 1.096 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.8478, allocations: 3.938 kB / 1.096 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003375/0.8481, allocations: 120.3 kB / 1.096 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.8484, allocations: 2.875 kB / 1.096 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006863/0.849, allocations: 289.6 kB / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.8492, allocations: 0.6969 MB / 1.097 GB, free: 16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001074/0.8494, allocations: 31.81 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.8494, allocations: 15.84 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.8494, allocations: 0 / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of Templates: time 0.005836/0.8553, allocations: 1.321 MB / 1.098 GB, free: 15.84 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches