Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve") [: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/Complex 3.2.3+maint.om/package.mo): time 0.001942/0.001942, allocations: 174.1 kB / 7.458 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9502/0.9502, allocations: 205.2 MB / 213.1 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007936/0.0007937, allocations: 88.8 kB / 261.1 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4917/0.4917, allocations: 90.35 MB / 399.4 MB, free: 12.3 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.599e-06/4.699e-06, allocations: 0 / 471.7 MB, free: 3.836 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2199, allocations: 66.26 MB / 0.5253 GB, free: 28.92 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.6429, allocations: 353.3 MB / 0.8704 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.6431, allocations: 76.53 kB / 0.8704 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd: time 0.8565/1.5, allocations: 340.7 MB / 1.203 GB, free: 102.4 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.536e-05/1.5, allocations: 48.59 kB / 1.203 GB, free: 102.4 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.002587/1.502, allocations: 1.803 MB / 1.205 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 2.82e-05/1.502, allocations: 11.59 kB / 1.205 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/1.503, allocations: 167.2 kB / 1.205 GB, free: 101.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009617/1.503, allocations: 0.7853 MB / 1.206 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/1.504, allocations: 37.62 kB / 1.206 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/1.504, allocations: 78.25 kB / 1.206 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001273/1.505, allocations: 1.062 MB / 1.207 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/1.506, allocations: 0.9029 MB / 1.208 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/1.506, allocations: 3.281 kB / 1.208 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.851e-05/1.506, allocations: 0 / 1.208 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/1.506, allocations: 32.41 kB / 1.208 GB, free: 101.2 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003686/1.51, allocations: 4.74 MB / 1.213 GB, free: 98.56 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005475/1.511, allocations: 0.5021 MB / 1.213 GB, free: 98.53 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004786/1.511, allocations: 0.4941 MB / 1.214 GB, free: 98.52 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002714/1.514, allocations: 3.807 MB / 1.217 GB, free: 95.67 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.569e-05/1.514, allocations: 45.31 kB / 1.217 GB, free: 95.63 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=115): time 2.144e-06/1.514, allocations: 0 / 1.217 GB, free: 95.63 MB / 0.5886 GB Notification: Performance of matching and sorting (n=115): time 0.002207/1.516, allocations: 1.101 MB / 1.218 GB, free: 95.48 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.569e-05/1.516, allocations: 60.16 kB / 1.218 GB, free: 95.42 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter valveEqualPercentage.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveEqualPercentage.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveEqualPercentage.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveParabolic.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveParabolic.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter valveLinear.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveLinear.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveLinear.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/1.517, allocations: 0.5928 MB / 1.219 GB, free: 95.28 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/1.517, allocations: 25.7 kB / 1.219 GB, free: 95.25 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/1.517, allocations: 407.6 kB / 1.219 GB, free: 95.01 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/1.517, allocations: 380.6 kB / 1.22 GB, free: 94.76 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.986e-05/1.517, allocations: 0 / 1.22 GB, free: 94.76 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 4.818e-05/1.517, allocations: 342.3 kB / 1.22 GB, free: 94.46 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/1.517, allocations: 353.5 kB / 1.221 GB, free: 94.45 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/1.518, allocations: 428.3 kB / 1.221 GB, free: 94.41 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/1.519, allocations: 398.9 kB / 1.221 GB, free: 94.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/1.519, allocations: 0 / 1.221 GB, free: 94.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002164/1.521, allocations: 1.141 MB / 1.222 GB, free: 94.26 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/1.521, allocations: 11.66 kB / 1.222 GB, free: 94.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/1.521, allocations: 0 / 1.222 GB, free: 94.26 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004187/1.522, allocations: 145.8 kB / 1.223 GB, free: 94.24 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/1.522, allocations: 202.1 kB / 1.223 GB, free: 94.24 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/1.525, allocations: 4.215 MB / 1.227 GB, free: 90.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/1.525, allocations: 81.34 kB / 1.227 GB, free: 90.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.212e-05/1.525, allocations: 47.05 kB / 1.227 GB, free: 90.59 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001231/1.525, allocations: 120.7 kB / 1.227 GB, free: 90.48 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/1.525, allocations: 111.4 kB / 1.227 GB, free: 90.43 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/1.528, allocations: 1.458 MB / 1.229 GB, free: 90.27 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/1.528, allocations: 10.5 kB / 1.229 GB, free: 90.27 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/1.528, allocations: 3.375 kB / 1.229 GB, free: 90.27 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/1.528, allocations: 7.688 kB / 1.229 GB, free: 90.27 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/1.532, allocations: 2.582 MB / 1.231 GB, free: 89.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/1.532, allocations: 6.375 kB / 1.231 GB, free: 89.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006019/1.533, allocations: 199.7 kB / 1.231 GB, free: 89.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003743/1.533, allocations: 154.2 kB / 1.232 GB, free: 89.81 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/1.533, allocations: 32.17 kB / 1.232 GB, free: 89.81 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002232/1.535, allocations: 4.228 MB / 1.236 GB, free: 86.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.535, allocations: 0 / 1.236 GB, free: 86.2 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002712/1.538, allocations: 1.875 MB / 1.238 GB, free: 85.86 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/1.538, allocations: 322.6 kB / 1.238 GB, free: 85.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/1.539, allocations: 2.688 kB / 1.238 GB, free: 85.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005128/1.539, allocations: 41.77 kB / 1.238 GB, free: 85.69 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/1.539, allocations: 79.61 kB / 1.238 GB, free: 85.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-05/1.539, allocations: 49.2 kB / 1.238 GB, free: 85.68 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0003711/1.54, allocations: 461.9 kB / 1.238 GB, free: 85.57 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001027/1.541, allocations: 0.634 MB / 1.239 GB, free: 85.46 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valveLinear.inlet.m_flow,valveParabolic.inlet.m_flow,valveEqualPercentage.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001137/1.542, allocations: 1.223 MB / 1.24 GB, free: 85.08 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001409/1.543, allocations: 1.37 MB / 1.242 GB, free: 84.66 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.543, allocations: 0 / 1.242 GB, free: 84.66 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0009227/1.544, allocations: 0.9671 MB / 1.243 GB, free: 84.26 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/1.545, allocations: 330.5 kB / 1.243 GB, free: 84.25 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/1.548, allocations: 1.698 MB / 1.244 GB, free: 83.76 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006506/1.548, allocations: 1.299 MB / 1.246 GB, free: 83.05 MB / 0.5886 GB Notification: Performance of SimCode: time 6.22e-07/1.548, allocations: 0 / 1.246 GB, free: 83.05 MB / 0.5886 GB Notification: Performance of Templates: time 0.02906/1.577, allocations: 26.63 MB / 1.272 GB, free: 81.94 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches