Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) 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) 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_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001286/0.001287, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 221.5 MB / 229.6 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 100.2 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01038/0.01038, allocations: 1.553 MB / 332.8 MB, free: 13.53 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8288/0.8288, allocations: 90.04 MB / 474 MB, free: 13.02 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.753e-05/1.757e-05, allocations: 0 / 0.5375 GB, free: 33.18 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1483, allocations: 69.38 MB / 0.6052 GB, free: 88 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.211/1.36, allocations: 357.1 MB / 0.9539 GB, free: 166 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/1.36, allocations: 91.17 kB / 0.954 GB, free: 166 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 1.266/2.626, allocations: 396.2 MB / 1.341 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.285e-06/2.626, allocations: 0 / 1.341 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002636/2.626, allocations: 67.67 kB / 1.341 GB, free: 53.53 MB / 0.6042 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.008589/2.635, allocations: 2.423 MB / 1.343 GB, free: 51.06 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/2.635, allocations: 8.031 kB / 1.343 GB, free: 51.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001783/2.636, allocations: 301 kB / 1.344 GB, free: 50.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003141/2.64, allocations: 1.065 MB / 1.345 GB, free: 49.66 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/2.64, allocations: 64 kB / 1.345 GB, free: 49.6 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006836/2.64, allocations: 115.9 kB / 1.345 GB, free: 49.49 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004301/2.645, allocations: 2.093 MB / 1.347 GB, free: 47.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004006/2.649, allocations: 1.616 MB / 1.348 GB, free: 45.77 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.048e-05/2.649, allocations: 0 / 1.348 GB, free: 45.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002007/2.649, allocations: 0 / 1.348 GB, free: 45.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.382e-05/2.649, allocations: 55.98 kB / 1.349 GB, free: 45.71 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/2.661, allocations: 8.701 MB / 1.357 GB, free: 36.17 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/2.664, allocations: 2.089 MB / 1.359 GB, free: 34.08 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/2.665, allocations: 0.9643 MB / 1.36 GB, free: 33.11 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008109/2.673, allocations: 6.061 MB / 1.366 GB, free: 26.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/2.675, allocations: 0.9332 MB / 1.367 GB, free: 25.5 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=216): time 4.568e-06/2.675, allocations: 0 / 1.367 GB, free: 25.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=216): time 0.008478/2.684, allocations: 2.348 MB / 1.369 GB, free: 23.14 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/2.684, allocations: 73.41 kB / 1.369 GB, free: 23.05 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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 1.0.0-main/Undirected/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.00192/2.686, allocations: 0.7216 MB / 1.37 GB, free: 22.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002895/2.686, allocations: 25.7 kB / 1.37 GB, free: 22.29 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007827/2.687, allocations: 0.7394 MB / 1.371 GB, free: 21.54 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.001168/2.688, allocations: 0.6888 MB / 1.371 GB, free: 20.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/2.688, allocations: 4 kB / 1.371 GB, free: 20.84 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002543/2.688, allocations: 377.8 kB / 1.372 GB, free: 20.46 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/2.69, allocations: 0.6523 MB / 1.372 GB, free: 19.81 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/2.691, allocations: 0.8463 MB / 1.373 GB, free: 18.92 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005733/2.697, allocations: 1.192 MB / 1.374 GB, free: 17.73 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.688e-05/2.697, allocations: 4 kB / 1.374 GB, free: 17.72 MB / 0.6042 GB Notification: Performance of matching and sorting (n=242) (initialization): time 0.008805/2.706, allocations: 2.477 MB / 1.377 GB, free: 15.23 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.905e-05/2.706, allocations: 33.69 kB / 1.377 GB, free: 15.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/2.706, allocations: 8.188 kB / 1.377 GB, free: 15.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006067/2.707, allocations: 158.5 kB / 1.377 GB, free: 15.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/2.708, allocations: 399.4 kB / 1.377 GB, free: 14.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00305/2.711, allocations: 4.339 MB / 1.382 GB, free: 9.945 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/2.713, allocations: 162.5 kB / 1.382 GB, free: 9.785 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005199/2.714, allocations: 87.89 kB / 1.382 GB, free: 9.699 MB / 0.6042 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.0005968/2.714, allocations: 140.5 kB / 1.382 GB, free: 9.555 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006298/2.715, allocations: 165.9 kB / 1.382 GB, free: 9.391 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008571/2.724, allocations: 2.986 MB / 1.385 GB, free: 6.402 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/2.724, allocations: 32 kB / 1.385 GB, free: 6.371 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/2.724, allocations: 4 kB / 1.385 GB, free: 6.367 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.604e-05/2.724, allocations: 11.95 kB / 1.385 GB, free: 6.355 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/2.735, allocations: 4.749 MB / 1.39 GB, free: 1.598 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/2.736, allocations: 0 / 1.39 GB, free: 1.598 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/2.737, allocations: 411.4 kB / 1.39 GB, free: 1.195 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005641/2.738, allocations: 170.4 kB / 1.39 GB, free: 1.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/2.738, allocations: 51.94 kB / 1.39 GB, free: 0.9688 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5335/3.271, allocations: 4.328 MB / 1.394 GB, free: 83.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/3.271, allocations: 1.281 kB / 1.394 GB, free: 83.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/3.283, allocations: 3.632 MB / 1.398 GB, free: 82.79 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/3.284, allocations: 0.5354 MB / 1.399 GB, free: 82.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/3.284, allocations: 2.719 kB / 1.399 GB, free: 82.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/3.285, allocations: 88.42 kB / 1.399 GB, free: 82.66 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003994/3.286, allocations: 183.7 kB / 1.399 GB, free: 82.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001843/3.286, allocations: 85.62 kB / 1.399 GB, free: 82.65 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0008118/3.287, allocations: 0.5324 MB / 1.399 GB, free: 82.54 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/3.287, allocations: 1.875 kB / 1.399 GB, free: 82.54 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003573/3.29, allocations: 0.8202 MB / 1.4 GB, free: 82.51 MB / 0.6042 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.002761/3.293, allocations: 1.282 MB / 1.401 GB, free: 82.21 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.004687/3.298, allocations: 2.245 MB / 1.404 GB, free: 81.81 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/3.298, allocations: 1.031 kB / 1.404 GB, free: 81.81 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002591/3.301, allocations: 1.424 MB / 1.405 GB, free: 81.49 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/3.304, allocations: 496.2 kB / 1.406 GB, free: 81.48 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007283/3.311, allocations: 2.633 MB / 1.408 GB, free: 80.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/3.313, allocations: 1.427 MB / 1.41 GB, free: 80.07 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002732/3.316, allocations: 419.8 kB / 1.41 GB, free: 80.05 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006768/3.317, allocations: 206.8 kB / 1.41 GB, free: 80.05 MB / 0.6042 GB Notification: Performance of SimCode: time 2.274e-06/3.317, allocations: 0 / 1.41 GB, free: 80.05 MB / 0.6042 GB Notification: Performance of Templates: time 0.06134/3.378, allocations: 35.77 MB / 1.445 GB, free: 77.77 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches