Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") [: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.002123/0.002123, allocations: 172.5 kB / 7.457 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 1.008/1.008, allocations: 205.2 MB / 213.1 MB, free: 13.86 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.0008479/0.0008479, allocations: 96.48 kB / 261.1 MB, free: 13.55 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.5193/0.5193, allocations: 90.35 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 5.82e-06/5.841e-06, allocations: 0 / 471.7 MB, free: 3.824 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2601, allocations: 66.27 MB / 0.5253 GB, free: 28.84 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4753/0.7355, allocations: 358.5 MB / 0.8754 GB, free: 9.52 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.7358, allocations: 85.75 kB / 0.8755 GB, free: 9.477 MB / 0.5573 GB Notification: Performance of FrontEnd: time 0.8619/1.598, allocations: 267.1 MB / 1.136 GB, free: 96.91 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.149e-05/1.598, allocations: 48.56 kB / 1.136 GB, free: 96.91 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.003421/1.601, allocations: 2.011 MB / 1.138 GB, free: 96.2 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/1.601, allocations: 7.5 kB / 1.138 GB, free: 96.2 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/1.602, allocations: 204.2 kB / 1.139 GB, free: 96.09 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/1.603, allocations: 0.9327 MB / 1.14 GB, free: 95.8 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/1.603, allocations: 45.47 kB / 1.14 GB, free: 95.8 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/1.603, allocations: 80.06 kB / 1.14 GB, free: 95.8 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001819/1.605, allocations: 1.462 MB / 1.141 GB, free: 95.79 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/1.607, allocations: 1.152 MB / 1.142 GB, free: 95.72 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/1.607, allocations: 0 / 1.142 GB, free: 95.72 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/1.607, allocations: 3.75 kB / 1.142 GB, free: 95.72 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/1.607, allocations: 37.66 kB / 1.142 GB, free: 95.71 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005446/1.612, allocations: 6.192 MB / 1.148 GB, free: 92.31 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/1.614, allocations: 1.205 MB / 1.149 GB, free: 92.27 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007266/1.614, allocations: 0.6641 MB / 1.15 GB, free: 92.26 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004277/1.619, allocations: 4.436 MB / 1.154 GB, free: 89.59 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008129/1.619, allocations: 0.6475 MB / 1.155 GB, free: 89.53 MB / 0.573 GB Notification: Performance of pre-optimization done (n=148): time 2.825e-06/1.619, allocations: 3.844 kB / 1.155 GB, free: 89.53 MB / 0.573 GB Notification: Performance of matching and sorting (n=148): time 0.004556/1.624, allocations: 1.735 MB / 1.157 GB, free: 89.38 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/1.624, allocations: 71.41 kB / 1.157 GB, free: 89.31 MB / 0.573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:25:3-26:88:writable] Warning: Parameter slideValveInverse.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/Undirected/FlowControl/SpecificValveType.mo:23:3-24:88:writable] Warning: Parameter slideValveInverse.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/Undirected/FlowControl/SpecificValveType.mo:27:3-28:92:writable] Warning: Parameter slideValve.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/Undirected/FlowControl/SpecificValveType.mo:25:3-26:88:writable] Warning: Parameter slideValve.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/Undirected/FlowControl/SpecificValveType.mo:23:3-24:88:writable] Warning: Parameter slideValve.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/Undirected/FlowControl/SpecificValveType.mo:17:3-18:61:writable] Warning: Parameter slideValve.d_valve 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.001095/1.625, allocations: 1.005 MB / 1.158 GB, free: 89.16 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/1.625, allocations: 25.7 kB / 1.158 GB, free: 89.13 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/1.625, allocations: 449.7 kB / 1.158 GB, free: 88.93 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/1.626, allocations: 485 kB / 1.159 GB, free: 88.61 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-05/1.626, allocations: 0 / 1.159 GB, free: 88.61 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.307e-05/1.626, allocations: 358 kB / 1.159 GB, free: 88.3 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/1.626, allocations: 470.7 kB / 1.16 GB, free: 88.3 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007037/1.627, allocations: 0.6155 MB / 1.16 GB, free: 88.16 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003123/1.63, allocations: 0.9069 MB / 1.161 GB, free: 88.14 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/1.63, allocations: 3.531 kB / 1.161 GB, free: 88.14 MB / 0.573 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00449/1.635, allocations: 1.85 MB / 1.163 GB, free: 87.99 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/1.635, allocations: 7.125 kB / 1.163 GB, free: 87.99 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.635, allocations: 3.969 kB / 1.163 GB, free: 87.99 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003751/1.635, allocations: 107.5 kB / 1.163 GB, free: 87.98 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/1.636, allocations: 292.9 kB / 1.163 GB, free: 87.98 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002034/1.638, allocations: 2.849 MB / 1.166 GB, free: 85.57 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009232/1.639, allocations: 114.1 kB / 1.166 GB, free: 85.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/1.639, allocations: 66.58 kB / 1.166 GB, free: 85.52 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001845/1.639, allocations: 130.7 kB / 1.166 GB, free: 85.41 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/1.64, allocations: 145.4 kB / 1.166 GB, free: 85.33 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005234/1.645, allocations: 2.398 MB / 1.169 GB, free: 85.15 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/1.645, allocations: 20.94 kB / 1.169 GB, free: 85.14 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.645, allocations: 2.625 kB / 1.169 GB, free: 85.14 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/1.645, allocations: 6.938 kB / 1.169 GB, free: 85.14 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006466/1.651, allocations: 3.714 MB / 1.172 GB, free: 84.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.651, allocations: 0 / 1.172 GB, free: 84.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009769/1.652, allocations: 308.9 kB / 1.173 GB, free: 84.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003133/1.653, allocations: 110.5 kB / 1.173 GB, free: 84.71 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.136e-05/1.653, allocations: 40.94 kB / 1.173 GB, free: 84.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001789/1.655, allocations: 2.85 MB / 1.176 GB, free: 82.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.655, allocations: 7.234 kB / 1.176 GB, free: 82.3 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004831/1.66, allocations: 2.712 MB / 1.178 GB, free: 81.95 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006748/1.66, allocations: 0.5012 MB / 1.179 GB, free: 81.76 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/1.66, allocations: 9.625 kB / 1.179 GB, free: 81.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/1.661, allocations: 62.25 kB / 1.179 GB, free: 81.75 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/1.661, allocations: 115.8 kB / 1.179 GB, free: 81.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/1.661, allocations: 72.19 kB / 1.179 GB, free: 81.75 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0008329/1.662, allocations: 0.7696 MB / 1.18 GB, free: 81.64 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001574/1.664, allocations: 0.6257 MB / 1.18 GB, free: 81.54 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (slideValve.rear.m_flow,slideValveInverse.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001463/1.665, allocations: 1.077 MB / 1.181 GB, free: 81.26 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001987/1.667, allocations: 1.562 MB / 1.183 GB, free: 81 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.667, allocations: 0 / 1.183 GB, free: 81 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001097/1.668, allocations: 0.9892 MB / 1.184 GB, free: 80.79 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/1.67, allocations: 365 kB / 1.184 GB, free: 80.77 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/1.674, allocations: 2.349 MB / 1.187 GB, free: 80.21 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.675, allocations: 1.522 MB / 1.188 GB, free: 79.49 MB / 0.573 GB Notification: Performance of SimCode: time 2.51e-07/1.675, allocations: 0 / 1.188 GB, free: 79.49 MB / 0.573 GB Notification: Performance of Templates: time 0.03574/1.711, allocations: 29.35 MB / 1.217 GB, free: 78.45 MB / 0.573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches