Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem_p1.T|pip0.port_a.m_flow|senTem_p2.T|pip2.port_a.m_flow|senTem_p3.T|pip3.port_a.m_flow|senTem_p4.T|pip4.port_a.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem_p1.T|pip0.port_a.m_flow|senTem_p2.T|pip2.port_a.m_flow|senTem_p3.T|pip3.port_a.m_flow|senTem_p4.T|pip4.port_a.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes") [: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 10.0.0-master/package.mo): time 2.091/2.091, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001197/0.001197, allocations: 189.2 kB / 490.8 MB, free: 1.949 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.462/1.462, allocations: 221.3 MB / 0.7863 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 86.31 kB / 0.9264 GB, free: 14.31 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.989e-06/1.02e-05, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2928, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.022/1.315, allocations: 481.5 MB / 1.682 GB, free: 76 kB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/1.315, allocations: 96.06 kB / 1.682 GB, free: 24 kB / 1.089 GB Notification: Performance of FrontEnd: time 3.183/4.498, allocations: 0.9525 GB / 2.634 GB, free: 8.387 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000703/4.499, allocations: 139.8 kB / 2.634 GB, free: 8.25 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1031 * Number of variables: 1031 Notification: Performance of Generate backend data structure: time 0.01748/4.516, allocations: 4.717 MB / 2.639 GB, free: 3.469 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/4.516, allocations: 16.03 kB / 2.639 GB, free: 3.453 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004251/4.521, allocations: 0.5795 MB / 2.64 GB, free: 2.867 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5077/5.028, allocations: 4.076 MB / 2.644 GB, free: 249.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002431/5.029, allocations: 116.8 kB / 2.644 GB, free: 249.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/5.031, allocations: 231.3 kB / 2.644 GB, free: 249.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01084/5.042, allocations: 5.091 MB / 2.649 GB, free: 249.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/5.053, allocations: 5.523 MB / 2.654 GB, free: 248.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001061/5.053, allocations: 11.69 kB / 2.654 GB, free: 248.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000567/5.053, allocations: 14.62 kB / 2.654 GB, free: 248.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003586/5.054, allocations: 409.1 kB / 2.655 GB, free: 248.6 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03668/5.09, allocations: 25.03 MB / 2.679 GB, free: 235.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006083/5.096, allocations: 3.973 MB / 2.683 GB, free: 235.4 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003072/5.1, allocations: 2.296 MB / 2.685 GB, free: 235.4 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02099/5.121, allocations: 12.41 MB / 2.697 GB, free: 230 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002813/5.123, allocations: 2.137 MB / 2.7 GB, free: 229.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=310): time 6.192e-06/5.123, allocations: 0 / 2.7 GB, free: 229.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=334): time 0.08899/5.212, allocations: 18.68 MB / 2.718 GB, free: 228.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/5.213, allocations: 116 kB / 2.718 GB, free: 228.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004242/5.217, allocations: 2.215 MB / 2.72 GB, free: 228.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001274/5.218, allocations: 32.7 kB / 2.72 GB, free: 228.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001421/5.22, allocations: 1.516 MB / 2.722 GB, free: 227.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001587/5.221, allocations: 1.118 MB / 2.723 GB, free: 227.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/5.221, allocations: 0 / 2.723 GB, free: 227.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0002027/5.222, allocations: 470.9 kB / 2.723 GB, free: 226.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/5.224, allocations: 1.887 MB / 2.725 GB, free: 226.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003016/5.227, allocations: 2.905 MB / 2.728 GB, free: 225.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02582/5.253, allocations: 5.293 MB / 2.733 GB, free: 225.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.374e-05/5.253, allocations: 8.547 kB / 2.733 GB, free: 225.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=512) (initialization): time 0.03289/5.286, allocations: 8.104 MB / 2.741 GB, free: 225.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.002478/5.289, allocations: 11.91 MB / 2.753 GB, free: 213.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.664e-05/5.289, allocations: 30.69 kB / 2.753 GB, free: 213.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001093/5.289, allocations: 50.41 kB / 2.753 GB, free: 213.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03767/5.327, allocations: 3.862 MB / 2.756 GB, free: 213.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/5.339, allocations: 5.504 MB / 2.762 GB, free: 209.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006603/5.345, allocations: 298.9 kB / 2.762 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001967/5.347, allocations: 206.1 kB / 2.762 GB, free: 209.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/5.347, allocations: 3.531 kB / 2.762 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02271/5.37, allocations: 6.143 MB / 2.768 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.606e-05/5.37, allocations: 26.5 kB / 2.768 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.605e-05/5.37, allocations: 54.06 kB / 2.768 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006628/5.377, allocations: 1.336 MB / 2.77 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.621e-05/5.377, allocations: 66.94 kB / 2.77 GB, free: 209.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0054/5.383, allocations: 290.5 kB / 2.77 GB, free: 209.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009603/5.383, allocations: 200.7 kB / 2.77 GB, free: 209.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.DataReader.nextTimeEvent,DataReader.nextTimeEvent,$PRE.DataReader.nextTimeEventScaled,DataReader.nextTimeEventScaled,lessThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (512): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001483/5.385, allocations: 212.5 kB / 2.77 GB, free: 209.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/5.386, allocations: 371.5 kB / 2.771 GB, free: 209.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03164/5.418, allocations: 8.22 MB / 2.779 GB, free: 209 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.756e-05/5.418, allocations: 37.81 kB / 2.779 GB, free: 209 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/5.418, allocations: 7.094 kB / 2.779 GB, free: 209 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02809/5.446, allocations: 6.982 MB / 2.786 GB, free: 208.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04848/5.494, allocations: 17.55 MB / 2.803 GB, free: 207.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/5.495, allocations: 15.78 kB / 2.803 GB, free: 207.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0343/5.529, allocations: 3.489 MB / 2.806 GB, free: 207.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-05/5.529, allocations: 29.53 kB / 2.806 GB, free: 207.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009009/5.53, allocations: 73.23 kB / 2.806 GB, free: 207.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/5.541, allocations: 5.369 MB / 2.811 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.736e-05/5.542, allocations: 26.41 kB / 2.812 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03366/5.575, allocations: 12.47 MB / 2.824 GB, free: 200.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002827/5.578, allocations: 0.9411 MB / 2.825 GB, free: 200.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001129/5.579, allocations: 35.89 kB / 2.825 GB, free: 200.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003678/5.583, allocations: 195.9 kB / 2.825 GB, free: 200.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004281/5.583, allocations: 249.2 kB / 2.825 GB, free: 200.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004109/5.584, allocations: 175 kB / 2.825 GB, free: 200.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.002233/5.586, allocations: 1.611 MB / 2.827 GB, free: 200 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.009232/5.595, allocations: 2.405 MB / 2.829 GB, free: 200 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 17 (pip0.mediums[1].T,pip0.mediums[2].T,pip1.mediums[1].T,pip1.mediums[2].T,pip2.mediums[1].T,pip2.mediums[2].T,pip3.mediums[1].T,pip3.mediums[2].T,pip4.mediums[1].T,pip4.mediums[2].T,pip5.mediums[1].T,pip5.mediums[2].T,senTem_p2.T,senTem_p3.T,senTemIn_p2.T,senTem_p1.T,senTem_p4.T) * Number of discrete variables: 4 ($whenCondition1,DataReader.nextTimeEvent,DataReader.nextTimeEventScaled,lessThreshold.y) * Number of discrete states: 2 (DataReader.nextTimeEvent,DataReader.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (395): * Single equations (assignments): 371 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003794/5.599, allocations: 1.776 MB / 2.831 GB, free: 199.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.06176/5.661, allocations: 11.29 MB / 2.842 GB, free: 199.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.536e-05/5.661, allocations: 4.844 kB / 2.842 GB, free: 199.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.05387/5.715, allocations: 6.255 MB / 2.848 GB, free: 199.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007566/5.722, allocations: 1.272 MB / 2.849 GB, free: 199.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/5.74, allocations: 9.035 MB / 2.858 GB, free: 197.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004278/5.745, allocations: 3.599 MB / 2.862 GB, free: 196.8 MB / 1.167 GB Notification: Performance of SimCode: time 1.182e-06/5.745, allocations: 2.844 kB / 2.862 GB, free: 196.8 MB / 1.167 GB Notification: Performance of Templates: time 0.164/5.909, allocations: 101.2 MB / 2.96 GB, free: 184.4 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_MSLAIT2Nodes.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.MSLAIT2Nodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches