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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00126/0.00126, allocations: 172.5 kB / 7.646 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.527/1.527, 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.0009691/0.0009691, allocations: 73.23 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.7971/0.7971, allocations: 90.37 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.743e-05/1.734e-05, allocations: 4 kB / 472.2 MB, free: 3.457 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3962, allocations: 66.25 MB / 0.5258 GB, free: 29.04 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7137/1.11, allocations: 353.4 MB / 0.871 GB, free: 1.492 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/1.11, allocations: 78.53 kB / 0.871 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.332/2.442, allocations: 338.7 MB / 1.202 GB, free: 95.91 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.974e-06/2.442, allocations: 0.8438 kB / 1.202 GB, free: 95.91 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001016/2.442, allocations: 44.52 kB / 1.202 GB, free: 95.9 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: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.00375/2.446, allocations: 1.775 MB / 1.204 GB, free: 95.11 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/2.446, allocations: 11.31 kB / 1.204 GB, free: 95.11 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005061/2.446, allocations: 197.5 kB / 1.204 GB, free: 95.02 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/2.448, allocations: 0.7773 MB / 1.205 GB, free: 94.69 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.982e-05/2.448, allocations: 38.59 kB / 1.205 GB, free: 94.69 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/2.448, allocations: 76.2 kB / 1.205 GB, free: 94.69 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00149/2.449, allocations: 1.044 MB / 1.206 GB, free: 94.68 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/2.451, allocations: 0.8883 MB / 1.207 GB, free: 94.6 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/2.451, allocations: 0 / 1.207 GB, free: 94.6 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/2.451, allocations: 0 / 1.207 GB, free: 94.6 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.989e-05/2.451, allocations: 35.41 kB / 1.207 GB, free: 94.6 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004775/2.456, allocations: 4.697 MB / 1.211 GB, free: 91.91 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/2.457, allocations: 1.125 MB / 1.212 GB, free: 91.88 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006072/2.458, allocations: 497.9 kB / 1.213 GB, free: 91.87 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00445/2.462, allocations: 3.764 MB / 1.216 GB, free: 89.02 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/2.462, allocations: 46.75 kB / 1.216 GB, free: 88.98 MB / 0.573 GB Notification: Performance of pre-optimization done (n=115): time 4.488e-06/2.462, allocations: 0 / 1.216 GB, free: 88.98 MB / 0.573 GB Notification: Performance of matching and sorting (n=115): time 0.002602/2.465, allocations: 1.051 MB / 1.217 GB, free: 88.82 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/2.465, allocations: 64.39 kB / 1.218 GB, free: 88.76 MB / 0.573 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.0007784/2.466, allocations: 0.6014 MB / 1.218 GB, free: 88.61 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 5.7e-05/2.466, allocations: 25.7 kB / 1.218 GB, free: 88.58 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/2.466, allocations: 0.5578 MB / 1.219 GB, free: 88.35 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000226/2.466, allocations: 378.2 kB / 1.219 GB, free: 88.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.222e-05/2.466, allocations: 0 / 1.219 GB, free: 88.1 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.627e-05/2.466, allocations: 338.2 kB / 1.219 GB, free: 87.79 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/2.467, allocations: 341.5 kB / 1.22 GB, free: 87.79 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/2.467, allocations: 418.2 kB / 1.22 GB, free: 87.75 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/2.469, allocations: 372.1 kB / 1.22 GB, free: 87.74 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/2.469, allocations: 3.719 kB / 1.22 GB, free: 87.74 MB / 0.573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002115/2.471, allocations: 1.094 MB / 1.221 GB, free: 87.59 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/2.471, allocations: 6.875 kB / 1.222 GB, free: 87.59 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/2.471, allocations: 3.75 kB / 1.222 GB, free: 87.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/2.471, allocations: 146.2 kB / 1.222 GB, free: 87.56 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/2.472, allocations: 197.3 kB / 1.222 GB, free: 87.56 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/2.475, allocations: 4.319 MB / 1.226 GB, free: 83.94 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007542/2.475, allocations: 81.69 kB / 1.226 GB, free: 83.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.092e-05/2.475, allocations: 36.56 kB / 1.226 GB, free: 83.9 MB / 0.573 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.0001666/2.476, allocations: 122.7 kB / 1.226 GB, free: 83.79 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/2.476, allocations: 113.8 kB / 1.226 GB, free: 83.73 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003036/2.479, allocations: 1.31 MB / 1.228 GB, free: 83.57 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/2.479, allocations: 10.81 kB / 1.228 GB, free: 83.57 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/2.479, allocations: 3.938 kB / 1.228 GB, free: 83.57 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/2.479, allocations: 3.938 kB / 1.228 GB, free: 83.57 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003924/2.483, allocations: 2.434 MB / 1.23 GB, free: 83.14 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/2.483, allocations: 0 / 1.23 GB, free: 83.14 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/2.483, allocations: 189.2 kB / 1.23 GB, free: 83.14 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004207/2.484, allocations: 152.8 kB / 1.23 GB, free: 83.12 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.785e-05/2.484, allocations: 28.27 kB / 1.23 GB, free: 83.12 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/2.487, allocations: 4.314 MB / 1.235 GB, free: 79.5 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/2.487, allocations: 0 / 1.235 GB, free: 79.5 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003211/2.49, allocations: 1.782 MB / 1.236 GB, free: 79.15 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005854/2.49, allocations: 313.9 kB / 1.237 GB, free: 78.98 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/2.491, allocations: 3.812 kB / 1.237 GB, free: 78.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005952/2.491, allocations: 40.98 kB / 1.237 GB, free: 78.98 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/2.491, allocations: 81.36 kB / 1.237 GB, free: 78.98 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.982e-05/2.491, allocations: 50.3 kB / 1.237 GB, free: 78.98 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006657/2.492, allocations: 456.9 kB / 1.237 GB, free: 78.87 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.7e-07/2.492, allocations: 1.219 kB / 1.237 GB, free: 78.87 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001998/2.494, allocations: 0.5846 MB / 1.238 GB, free: 78.77 MB / 0.573 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 (107): * Single equations (assignments): 101 * 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.001645/2.496, allocations: 1.165 MB / 1.239 GB, free: 78.38 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001951/2.498, allocations: 1.353 MB / 1.24 GB, free: 77.95 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/2.498, allocations: 3.781 kB / 1.24 GB, free: 77.95 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001084/2.499, allocations: 0.9633 MB / 1.241 GB, free: 77.54 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/2.501, allocations: 344.3 kB / 1.242 GB, free: 77.52 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/2.504, allocations: 1.653 MB / 1.243 GB, free: 77.02 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/2.504, allocations: 1.174 MB / 1.244 GB, free: 76.3 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0008039/2.505, allocations: 206.2 kB / 1.245 GB, free: 76.24 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/2.505, allocations: 98.55 kB / 1.245 GB, free: 76.23 MB / 0.573 GB Notification: Performance of SimCode: time 7.52e-07/2.505, allocations: 0 / 1.245 GB, free: 76.23 MB / 0.573 GB Notification: Performance of Templates: time 0.03548/2.541, allocations: 23.84 MB / 1.268 GB, free: 74.46 MB / 0.573 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