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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.005947/0.005947, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001376/0.001376, allocations: 194.5 kB / 16.79 MB, free: 5.809 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.379/1.379, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.439/2.439, allocations: 390.2 MB / 0.6649 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 67.88 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7859/0.7875, allocations: 140.3 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002919/0.7905, allocations: 1.636 MB / 0.9512 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009876/0.7915, allocations: 0.599 MB / 0.9518 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.108e-05/0.7915, allocations: 0 / 0.9518 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.926e-05/0.7916, allocations: 5.344 kB / 0.9518 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.139e-05/0.7917, allocations: 9.203 kB / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.7919, allocations: 40.95 kB / 0.9518 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.513e-05/0.792, allocations: 44.2 kB / 0.9519 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.7922, allocations: 22.38 kB / 0.9519 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.7923, allocations: 29.56 kB / 0.9519 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.525e-05/0.7924, allocations: 22.98 kB / 0.9519 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.7924, allocations: 3.094 kB / 0.9519 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.7925, allocations: 47.05 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.662e-05/0.7926, allocations: 18.95 kB / 0.952 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.723e-05/0.7926, allocations: 30.7 kB / 0.952 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.7928, allocations: 67.73 kB / 0.9521 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.7928, allocations: 1.375 kB / 0.9521 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7928, allocations: 0 / 0.9521 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.95e-06/0.7928, allocations: 4 kB / 0.9521 GB, free: 7.176 MB / 0.7169 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.0005395/0.7934, allocations: 392 kB / 0.9525 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.7934, allocations: 8.031 kB / 0.9525 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009561/0.7944, allocations: 208.4 kB / 0.9527 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.7945, allocations: 195.9 kB / 0.9529 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.443e-05/0.7946, allocations: 37.72 kB / 0.9529 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.7946, allocations: 6.188 kB / 0.9529 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.795, allocations: 172.7 kB / 0.9531 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.7951, allocations: 5.609 kB / 0.9531 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.7951, allocations: 0 / 0.9531 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.7951, allocations: 1.531 kB / 0.9531 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000595/0.7957, allocations: 233.4 kB / 0.9533 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008326/0.7965, allocations: 0.5095 MB / 0.9538 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006387/0.7972, allocations: 236.7 kB / 0.954 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.7975, allocations: 116.5 kB / 0.9541 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.7976, allocations: 4.062 kB / 0.9541 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.7976, allocations: 44 kB / 0.9542 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.513e-06/0.7976, allocations: 0 / 0.9542 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.001184/0.7988, allocations: 369.7 kB / 0.9545 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.7989, allocations: 56.22 kB / 0.9546 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.7991, allocations: 174 kB / 0.9548 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.7991, allocations: 33.83 kB / 0.9548 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.7992, allocations: 101.3 kB / 0.9549 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.7992, allocations: 5.281 kB / 0.9549 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.7993, allocations: 25.31 kB / 0.9549 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.7994, allocations: 322.4 kB / 0.9552 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.7997, allocations: 114.4 kB / 0.9553 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.8, allocations: 106.2 kB / 0.9554 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005898/0.8006, allocations: 203.9 kB / 0.9556 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.8006, allocations: 1.344 kB / 0.9556 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00063/0.8013, allocations: 252.4 kB / 0.9559 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.8013, allocations: 4.844 kB / 0.9559 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.8013, allocations: 0 / 0.9559 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.8013, allocations: 9.234 kB / 0.9559 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.8016, allocations: 42.08 kB / 0.9559 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.8016, allocations: 3.938 kB / 0.9559 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.8018, allocations: 38.16 kB / 0.956 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.8018, allocations: 7.984 kB / 0.956 GB, free: 4.332 MB / 0.7169 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.74e-05/0.8019, allocations: 115.4 kB / 0.9561 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.8019, allocations: 9.656 kB / 0.9561 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.802, allocations: 9.75 kB / 0.9561 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.802, allocations: 1.969 kB / 0.9561 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.802, allocations: 3.938 kB / 0.9561 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.802, allocations: 0 / 0.9561 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.8023, allocations: 242.6 kB / 0.9563 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.8023, allocations: 0 / 0.9563 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.8025, allocations: 53.78 kB / 0.9564 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.8025, allocations: 0 / 0.9564 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.8025, allocations: 6.406 kB / 0.9564 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.8025, allocations: 4 kB / 0.9564 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.8025, allocations: 3.938 kB / 0.9564 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006882/0.8032, allocations: 352.4 kB / 0.9567 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.668e-05/0.8033, allocations: 83.61 kB / 0.9568 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.8033, allocations: 9.172 kB / 0.9568 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.8035, allocations: 36.31 kB / 0.9569 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.8036, allocations: 5.312 kB / 0.9569 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.8036, allocations: 9.359 kB / 0.9569 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001155/0.8037, allocations: 124.7 kB / 0.957 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8037, allocations: 5.312 kB / 0.957 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002817/0.804, allocations: 19.12 kB / 0.957 GB, free: 3.457 MB / 0.7169 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.0002176/0.8042, allocations: 102.5 kB / 0.9571 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007094/0.8049, allocations: 236.2 kB / 0.9573 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.805, allocations: 1.156 kB / 0.9573 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.8053, allocations: 117 kB / 0.9575 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.8056, allocations: 13.62 kB / 0.9575 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007383/0.8063, allocations: 326.8 kB / 0.9578 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/0.8065, allocations: 0.6977 MB / 0.9585 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.604e-05/0.8066, allocations: 24.97 kB / 0.9585 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.8066, allocations: 0 / 0.9585 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of Templates: time 0.003489/0.8101, allocations: 1.657 MB / 0.9601 GB, free: 1.395 MB / 0.7169 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/jenkins1/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