Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008006/0.0008007, allocations: 180.6 kB / 15.45 MB, free: 6.227 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205 MB / 221.2 MB, free: 1.855 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000668/0.000668, allocations: 94.23 kB / 269.2 MB, free: 1.797 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.464/0.464, allocations: 90.52 MB / 407.6 MB, free: 15.09 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002662, allocations: 8 kB / 484.3 MB, free: 3.504 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.09699, allocations: 65.81 MB / 0.5372 GB, free: 1.617 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3133/0.4103, allocations: 169.6 MB / 0.7029 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01089/0.4213, allocations: 10.96 MB / 0.7136 GB, free: 3.453 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006042/0.4219, allocations: 23.88 kB / 0.7136 GB, free: 3.43 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.4233, allocations: 0.6997 MB / 0.7143 GB, free: 2.727 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002568/0.4259, allocations: 1.539 MB / 0.7158 GB, free: 1.18 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.4277, allocations: 0.962 MB / 0.7167 GB, free: 220 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002501/0.4302, allocations: 3.318 MB / 0.72 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004752/0.4307, allocations: 395.3 kB / 0.7203 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009737/0.4317, allocations: 0.8559 MB / 0.7212 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/0.4329, allocations: 1.281 MB / 0.7224 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.433, allocations: 60 kB / 0.7225 GB, free: 10.28 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002987/0.436, allocations: 1.98 MB / 0.7244 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.4362, allocations: 258.8 kB / 0.7247 GB, free: 8.039 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0005053/0.4367, allocations: 0.6684 MB / 0.7253 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.439, allocations: 2.41 MB / 0.7277 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.439, allocations: 0 / 0.7277 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.352e-06/0.439, allocations: 3.938 kB / 0.7277 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.439, allocations: 0 / 0.7277 GB, free: 4.945 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002693/0.4417, allocations: 1.649 MB / 0.7293 GB, free: 3.234 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.4417, allocations: 15.97 kB / 0.7293 GB, free: 3.219 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.4419, allocations: 181.8 kB / 0.7295 GB, free: 3.031 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002245/0.4421, allocations: 159.1 kB / 0.7296 GB, free: 2.875 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008308/0.443, allocations: 0.7329 MB / 0.7303 GB, free: 2.102 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.197e-05/0.4431, allocations: 90.75 kB / 0.7304 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.4432, allocations: 120.3 kB / 0.7305 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.4452, allocations: 1.41 MB / 0.7319 GB, free: 468 kB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.4452, allocations: 3.984 kB / 0.7319 GB, free: 464 kB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.149e-05/0.4453, allocations: 48 kB / 0.732 GB, free: 416 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.4453, allocations: 32 kB / 0.732 GB, free: 384 kB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002362/0.4477, allocations: 1.692 MB / 0.7336 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005771/0.4535, allocations: 6.303 MB / 0.7398 GB, free: 7.699 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.4557, allocations: 1.497 MB / 0.7413 GB, free: 6.191 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.4568, allocations: 0.7465 MB / 0.742 GB, free: 5.441 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004142/0.4609, allocations: 4.104 MB / 0.746 GB, free: 0.8828 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.4621, allocations: 0.7823 MB / 0.7468 GB, free: 96 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=134): time 2.525e-06/0.4621, allocations: 0 / 0.7468 GB, free: 96 kB / 0.5417 GB Notification: Performance of matching and sorting (n=135): time 0.0066/0.4687, allocations: 4.122 MB / 0.7508 GB, free: 11.88 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4687, allocations: 68.66 kB / 0.7508 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.4693, allocations: 0.5472 MB / 0.7514 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.262e-05/0.4694, allocations: 45.7 kB / 0.7514 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.4696, allocations: 464.6 kB / 0.7519 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/0.4699, allocations: 461.2 kB / 0.7523 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.47, allocations: 27.94 kB / 0.7523 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4702, allocations: 402.7 kB / 0.7527 GB, free: 9.844 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009083/0.4711, allocations: 0.5531 MB / 0.7533 GB, free: 9.293 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009869/0.4721, allocations: 0.6642 MB / 0.7539 GB, free: 8.605 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001998/0.4741, allocations: 1.33 MB / 0.7552 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4741, allocations: 0 / 0.7552 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002689/0.4768, allocations: 1.666 MB / 0.7568 GB, free: 5.57 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.4768, allocations: 37.7 kB / 0.7569 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4768, allocations: 0 / 0.7569 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004232/0.4773, allocations: 160.8 kB / 0.757 GB, free: 5.367 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008051/0.4781, allocations: 247.7 kB / 0.7573 GB, free: 5.125 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/0.4814, allocations: 2.533 MB / 0.7597 GB, free: 2.453 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005674/0.482, allocations: 95.69 kB / 0.7598 GB, free: 2.359 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.625e-05/0.4821, allocations: 55.97 kB / 0.7599 GB, free: 2.305 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003573/0.4825, allocations: 281.6 kB / 0.7601 GB, free: 2.02 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.4827, allocations: 98.81 kB / 0.7602 GB, free: 1.922 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1696/0.6522, allocations: 2.171 MB / 0.7624 GB, free: 194.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-05/0.6523, allocations: 18.14 kB / 0.7624 GB, free: 194.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.6523, allocations: 2.156 kB / 0.7624 GB, free: 194.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/0.6523, allocations: 9.516 kB / 0.7624 GB, free: 194.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005196/0.6575, allocations: 3.578 MB / 0.7659 GB, free: 193.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/0.6575, allocations: 3.969 kB / 0.7659 GB, free: 193.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000842/0.6584, allocations: 287.7 kB / 0.7662 GB, free: 193.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003544/0.6588, allocations: 145.1 kB / 0.7663 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.021e-05/0.6588, allocations: 48.72 kB / 0.7663 GB, free: 193.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.6606, allocations: 2.226 MB / 0.7685 GB, free: 191.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6606, allocations: 4.375 kB / 0.7685 GB, free: 191.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003747/0.6644, allocations: 2.791 MB / 0.7713 GB, free: 190.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.6646, allocations: 172.6 kB / 0.7714 GB, free: 190.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.6647, allocations: 26.95 kB / 0.7714 GB, free: 190.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.6653, allocations: 101.4 kB / 0.7715 GB, free: 190.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.6655, allocations: 126.3 kB / 0.7717 GB, free: 190.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.807e-05/0.6656, allocations: 57.16 kB / 0.7717 GB, free: 190.6 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003612/0.666, allocations: 386.6 kB / 0.7721 GB, free: 190.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.41e-07/0.666, allocations: 1.125 kB / 0.7721 GB, free: 190.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001129/0.6671, allocations: 0.512 MB / 0.7726 GB, free: 190.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004728/0.6718, allocations: 3.83 MB / 0.7763 GB, free: 188.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00242/0.6743, allocations: 1.784 MB / 0.7781 GB, free: 187.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6743, allocations: 1.344 kB / 0.7781 GB, free: 187.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.6757, allocations: 1.107 MB / 0.7791 GB, free: 187.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.6771, allocations: 324 kB / 0.7795 GB, free: 187.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.6888, allocations: 10.46 MB / 0.7897 GB, free: 181.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005107/0.6894, allocations: 1.146 MB / 0.7908 GB, free: 180.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008972/0.6903, allocations: 343.6 kB / 0.7911 GB, free: 180.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005286/0.6908, allocations: 0.5201 MB / 0.7916 GB, free: 180.2 MB / 0.5573 GB Notification: Performance of SimCode: time 9.32e-07/0.6908, allocations: 0 / 0.7916 GB, free: 180.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5466/1.237, allocations: 34.83 MB / 0.8256 GB, free: 150.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001205/1.238, allocations: 255.2 kB / 0.8259 GB, free: 149.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/4.041, allocations: 3.938 kB / 0.8259 GB, free: 149.9 MB / 0.5573 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches