Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.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.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009391/0.0009392, allocations: 173.9 kB / 7.648 MB, free: 1.422 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.442/1.442, allocations: 205.3 MB / 213.4 MB, free: 13.76 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.000894/0.0008941, allocations: 89.67 kB / 261.4 MB, free: 13.45 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.7773/0.7773, allocations: 90.36 MB / 399.7 MB, free: 12.11 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.583e-05, allocations: 7.938 kB / 472.2 MB, free: 3.438 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4037, allocations: 66.25 MB / 0.5258 GB, free: 29.05 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6911/1.095, allocations: 357 MB / 0.8745 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.095, allocations: 86.02 kB / 0.8746 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 1.388/2.483, allocations: 387.6 MB / 1.253 GB, free: 88.23 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.413e-06/2.483, allocations: 0 / 1.253 GB, free: 88.23 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001267/2.483, allocations: 54.94 kB / 1.253 GB, free: 88.21 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: 485 * Number of variables: 485 Notification: Performance of Generate backend data structure: time 0.005588/2.489, allocations: 2.423 MB / 1.256 GB, free: 86.52 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/2.489, allocations: 11.56 kB / 1.256 GB, free: 86.52 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009169/2.49, allocations: 294.9 kB / 1.256 GB, free: 86.38 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001824/2.492, allocations: 1.06 MB / 1.257 GB, free: 85.57 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.909e-05/2.492, allocations: 61.69 kB / 1.257 GB, free: 85.57 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/2.492, allocations: 119.6 kB / 1.257 GB, free: 85.56 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002969/2.495, allocations: 2.095 MB / 1.259 GB, free: 84.57 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002462/2.498, allocations: 1.618 MB / 1.261 GB, free: 83.72 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.718e-05/2.498, allocations: 3.953 kB / 1.261 GB, free: 83.72 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/2.498, allocations: 5.578 kB / 1.261 GB, free: 83.71 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/2.498, allocations: 52.25 kB / 1.261 GB, free: 83.71 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008667/2.506, allocations: 8.705 MB / 1.269 GB, free: 75.74 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/2.509, allocations: 2.099 MB / 1.271 GB, free: 74.66 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/2.51, allocations: 0.9536 MB / 1.272 GB, free: 74.21 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006599/2.516, allocations: 6.057 MB / 1.278 GB, free: 68.66 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001257/2.518, allocations: 0.9315 MB / 1.279 GB, free: 68.12 MB / 0.573 GB Notification: Performance of pre-optimization done (n=216): time 3.897e-06/2.518, allocations: 0 / 1.279 GB, free: 68.12 MB / 0.573 GB Notification: Performance of matching and sorting (n=216): time 0.006647/2.524, allocations: 2.349 MB / 1.281 GB, free: 66.96 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/2.524, allocations: 81.23 kB / 1.281 GB, free: 66.89 MB / 0.573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:28:3-29: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/Undirected/FlowControl/BasicControlValve.mo:26:3-27: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/Undirected/FlowControl/BasicControlValve.mo:24:3-25: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/Undirected/FlowControl/BasicControlValve.mo:26:3-27: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/Undirected/FlowControl/BasicControlValve.mo:24:3-25: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/Undirected/FlowControl/BasicControlValve.mo:28:3-29: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/Undirected/FlowControl/BasicControlValve.mo:26:3-27: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/Undirected/FlowControl/BasicControlValve.mo:24:3-25: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.0009309/2.525, allocations: 0.72 MB / 1.282 GB, free: 66.51 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001026/2.525, allocations: 25.7 kB / 1.282 GB, free: 66.48 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/2.526, allocations: 0.7384 MB / 1.283 GB, free: 65.82 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004202/2.526, allocations: 0.6867 MB / 1.284 GB, free: 65.21 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-05/2.526, allocations: 2.906 kB / 1.284 GB, free: 65.21 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.522e-05/2.527, allocations: 383.7 kB / 1.284 GB, free: 64.84 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008514/2.527, allocations: 0.6505 MB / 1.285 GB, free: 64.53 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009279/2.528, allocations: 0.8349 MB / 1.285 GB, free: 64.04 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004581/2.533, allocations: 1.201 MB / 1.287 GB, free: 62.94 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/2.533, allocations: 3.938 kB / 1.287 GB, free: 62.93 MB / 0.573 GB Notification: Performance of matching and sorting (n=242) (initialization): time 0.006573/2.54, allocations: 2.481 MB / 1.289 GB, free: 60.44 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/2.54, allocations: 37.7 kB / 1.289 GB, free: 60.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/2.54, allocations: 4 kB / 1.289 GB, free: 60.39 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004911/2.54, allocations: 154.8 kB / 1.289 GB, free: 60.24 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/2.541, allocations: 391.5 kB / 1.29 GB, free: 59.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/2.544, allocations: 4.35 MB / 1.294 GB, free: 55.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/2.546, allocations: 165 kB / 1.294 GB, free: 55.03 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/2.546, allocations: 86.69 kB / 1.294 GB, free: 54.95 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 (223): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 6 * 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.000267/2.546, allocations: 136.5 kB / 1.294 GB, free: 54.81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/2.546, allocations: 161.9 kB / 1.294 GB, free: 54.65 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006839/2.553, allocations: 2.992 MB / 1.297 GB, free: 51.66 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/2.553, allocations: 31.98 kB / 1.297 GB, free: 51.63 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/2.553, allocations: 3.938 kB / 1.297 GB, free: 51.63 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.34e-05/2.553, allocations: 11.95 kB / 1.297 GB, free: 51.62 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008458/2.562, allocations: 4.755 MB / 1.302 GB, free: 46.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/2.562, allocations: 0 / 1.302 GB, free: 46.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/2.563, allocations: 418 kB / 1.302 GB, free: 46.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/2.563, allocations: 164.2 kB / 1.302 GB, free: 46.29 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/2.564, allocations: 55 kB / 1.303 GB, free: 46.24 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/2.566, allocations: 4.336 MB / 1.307 GB, free: 41.58 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/2.566, allocations: 0 / 1.307 GB, free: 41.58 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006651/2.573, allocations: 3.63 MB / 1.31 GB, free: 37.91 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008482/2.574, allocations: 0.5294 MB / 1.311 GB, free: 37.36 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/2.574, allocations: 7.984 kB / 1.311 GB, free: 37.35 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009231/2.575, allocations: 84.94 kB / 1.311 GB, free: 37.27 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002905/2.575, allocations: 181.6 kB / 1.311 GB, free: 37.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/2.575, allocations: 83.94 kB / 1.311 GB, free: 37.01 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006234/2.576, allocations: 0.5399 MB / 1.312 GB, free: 36.46 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.61e-07/2.576, allocations: 2.875 kB / 1.312 GB, free: 36.46 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002316/2.578, allocations: 0.8224 MB / 1.312 GB, free: 35.64 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valveLinear.rear.m_flow,valveParabolic.rear.m_flow,valveEqualPercentage.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 (235): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.001715/2.58, allocations: 1.278 MB / 1.314 GB, free: 34.57 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00291/2.583, allocations: 2.242 MB / 1.316 GB, free: 32.29 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/2.583, allocations: 0 / 1.316 GB, free: 32.29 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/2.584, allocations: 1.427 MB / 1.317 GB, free: 30.84 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/2.587, allocations: 494.3 kB / 1.318 GB, free: 30.39 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/2.591, allocations: 2.643 MB / 1.32 GB, free: 27.73 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006551/2.592, allocations: 1.423 MB / 1.322 GB, free: 26.27 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001544/2.594, allocations: 430.3 kB / 1.322 GB, free: 25.87 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004392/2.594, allocations: 203.3 kB / 1.322 GB, free: 25.68 MB / 0.573 GB Notification: Performance of SimCode: time 9.32e-07/2.594, allocations: 0 / 1.322 GB, free: 25.68 MB / 0.573 GB Notification: Performance of Templates: time 0.05136/2.645, allocations: 35.76 MB / 1.357 GB, free: 6.453 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches