Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.QMax_flow|hex.Q1_flow|hex.Q2_flow|hex.hA.hA_1|hex.hA.hA_2",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow") translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.QMax_flow|hex.Q1_flow|hex.Q2_flow|hex.hA.hA_1|hex.hA.hA_2",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.134/2.134, allocations: 387.2 MB / 394.5 MB, free: 13.7 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 185.2 kB / 487 MB, free: 5.348 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 221.3 MB / 0.7819 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 85.19 kB / 0.9213 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.105e-06/8.135e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2904, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.833/5.124, allocations: 2.194 GB / 3.399 GB, free: 97.05 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/5.124, allocations: 87.83 kB / 3.4 GB, free: 96.97 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.119/8.243, allocations: 0.9244 GB / 4.324 GB, free: 45.43 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001235/8.243, allocations: 39.98 kB / 4.324 GB, free: 45.39 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.005395/8.249, allocations: 1.96 MB / 4.326 GB, free: 43.37 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/8.249, allocations: 8.031 kB / 4.326 GB, free: 43.36 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003167/8.252, allocations: 0.5718 MB / 4.326 GB, free: 42.79 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/8.255, allocations: 1.231 MB / 4.328 GB, free: 41.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005881/8.256, allocations: 185.9 kB / 4.328 GB, free: 41.32 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/8.256, allocations: 56 kB / 4.328 GB, free: 41.27 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001569/8.258, allocations: 0.9566 MB / 4.329 GB, free: 40.31 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/8.259, allocations: 1.043 MB / 4.33 GB, free: 39.24 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/8.259, allocations: 0 / 4.33 GB, free: 39.24 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.452e-05/8.259, allocations: 0 / 4.33 GB, free: 39.24 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.481e-05/8.259, allocations: 41.98 kB / 4.33 GB, free: 39.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008124/8.267, allocations: 4.915 MB / 4.335 GB, free: 33.99 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/8.268, allocations: 0.8221 MB / 4.336 GB, free: 33.14 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005386/8.269, allocations: 460.1 kB / 4.336 GB, free: 32.69 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009876/8.27, allocations: 0.8578 MB / 4.337 GB, free: 31.67 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007206/8.271, allocations: 0.6187 MB / 4.337 GB, free: 31.02 MB / 1.151 GB Notification: Performance of pre-optimization done (n=85): time 4.068e-06/8.271, allocations: 3.938 kB / 4.337 GB, free: 31.01 MB / 1.151 GB Notification: Performance of matching and sorting (n=85): time 0.002644/8.273, allocations: 1.094 MB / 4.338 GB, free: 29.91 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/8.273, allocations: 145.2 kB / 4.339 GB, free: 29.74 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009091/8.274, allocations: 0.742 MB / 4.339 GB, free: 28.98 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.948e-05/8.275, allocations: 29.7 kB / 4.339 GB, free: 28.95 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/8.275, allocations: 388.2 kB / 4.34 GB, free: 28.56 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000199/8.275, allocations: 256.1 kB / 4.34 GB, free: 28.31 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/8.275, allocations: 4 kB / 4.34 GB, free: 28.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.949e-05/8.275, allocations: 342 kB / 4.34 GB, free: 27.96 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005303/8.276, allocations: 393.9 kB / 4.341 GB, free: 27.58 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006273/8.276, allocations: 0.5996 MB / 4.341 GB, free: 26.89 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/8.278, allocations: 0.5608 MB / 4.342 GB, free: 26.34 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/8.278, allocations: 0 / 4.342 GB, free: 26.34 MB / 1.151 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002434/8.28, allocations: 1.243 MB / 4.343 GB, free: 25.09 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002272/8.28, allocations: 1.139 MB / 4.344 GB, free: 23.86 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/8.28, allocations: 4 kB / 4.344 GB, free: 23.86 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/8.28, allocations: 12 kB / 4.344 GB, free: 23.85 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/8.282, allocations: 279.6 kB / 4.344 GB, free: 23.57 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/8.282, allocations: 7.984 kB / 4.344 GB, free: 23.57 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/8.284, allocations: 195 kB / 4.345 GB, free: 23.38 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/8.284, allocations: 55.95 kB / 4.345 GB, free: 23.32 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/8.284, allocations: 0 / 4.345 GB, free: 23.32 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002233/8.286, allocations: 1.09 MB / 4.346 GB, free: 22.23 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/8.286, allocations: 4.344 kB / 4.346 GB, free: 22.23 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/8.286, allocations: 12 kB / 4.346 GB, free: 22.21 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/8.287, allocations: 275.6 kB / 4.346 GB, free: 21.95 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/8.287, allocations: 8 kB / 4.346 GB, free: 21.94 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/8.289, allocations: 175.1 kB / 4.346 GB, free: 21.77 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/8.289, allocations: 51.95 kB / 4.346 GB, free: 21.71 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled,hex.flowRegime,hex.flowRegime_nominal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003243/8.289, allocations: 200.1 kB / 4.346 GB, free: 21.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/8.289, allocations: 114.6 kB / 4.347 GB, free: 21.39 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/8.292, allocations: 1.263 MB / 4.348 GB, free: 20.11 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/8.292, allocations: 11.98 kB / 4.348 GB, free: 20.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/8.292, allocations: 7.938 kB / 4.348 GB, free: 20.09 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/8.292, allocations: 11.92 kB / 4.348 GB, free: 20.08 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004501/8.297, allocations: 2.683 MB / 4.35 GB, free: 17.32 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/8.297, allocations: 4 kB / 4.35 GB, free: 17.31 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/8.298, allocations: 212.1 kB / 4.351 GB, free: 17.11 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/8.298, allocations: 12 kB / 4.351 GB, free: 17.09 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.068e-05/8.298, allocations: 23.97 kB / 4.351 GB, free: 17.07 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/8.298, allocations: 11.94 kB / 4.351 GB, free: 17.06 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/8.298, allocations: 4 kB / 4.351 GB, free: 17.05 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003011/8.301, allocations: 2.097 MB / 4.353 GB, free: 14.83 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006289/8.302, allocations: 352 kB / 4.353 GB, free: 14.46 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002061/8.302, allocations: 11.91 kB / 4.353 GB, free: 14.45 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/8.303, allocations: 135.9 kB / 4.353 GB, free: 14.32 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/8.303, allocations: 60.42 kB / 4.353 GB, free: 14.26 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/8.303, allocations: 47.97 kB / 4.353 GB, free: 14.21 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0007024/8.304, allocations: 0.5615 MB / 4.354 GB, free: 13.64 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002865/8.307, allocations: 0.9397 MB / 4.355 GB, free: 12.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 (senRelHum.phi) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled,hex.flowRegime) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003165/8.31, allocations: 2.452 MB / 4.357 GB, free: 10.17 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002307/8.313, allocations: 1.673 MB / 4.359 GB, free: 8.477 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/8.313, allocations: 64 / 4.359 GB, free: 8.477 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006661/8.313, allocations: 0.6108 MB / 4.359 GB, free: 7.855 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/8.315, allocations: 406.5 kB / 4.36 GB, free: 7.465 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/8.319, allocations: 1.817 MB / 4.362 GB, free: 5.578 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009887/8.32, allocations: 1.314 MB / 4.363 GB, free: 4.23 MB / 1.151 GB Notification: Performance of SimCode: time 5.11e-07/8.32, allocations: 0 / 4.363 GB, free: 4.23 MB / 1.151 GB Notification: Performance of Templates: time 0.7316/9.052, allocations: 40.18 MB / 4.402 GB, free: 331.4 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUMassFlow.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches