Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.conf.json 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/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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001962/0.001963, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002471/0.002472, allocations: 194.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.017/2.017, allocations: 222.9 MB / 240.2 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.183/1.183, allocations: 93.72 MB / 384.1 MB, free: 6.98 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00272/0.00272, allocations: 82.84 kB / 463.5 MB, free: 21.97 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2606, allocations: 68.26 MB / 0.5193 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.9577/1.218, allocations: 173.1 MB / 0.6884 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02317/1.242, allocations: 10.98 MB / 0.6991 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003732/1.245, allocations: 49.66 kB / 0.6992 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004136/1.25, allocations: 0.8057 MB / 0.7 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.008936/1.259, allocations: 1.667 MB / 0.7016 GB, free: 128 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005479/1.264, allocations: 1.119 MB / 0.7027 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006524/1.271, allocations: 2.526 MB / 0.7051 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/1.272, allocations: 477.9 kB / 0.7056 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003512/1.276, allocations: 1.035 MB / 0.7066 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003153/1.279, allocations: 1.347 MB / 0.7079 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000417/1.279, allocations: 140 kB / 0.7081 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007292/1.286, allocations: 1.934 MB / 0.7099 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000747/1.287, allocations: 370.6 kB / 0.7103 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001891/1.289, allocations: 0.8085 MB / 0.7111 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.008864/1.298, allocations: 2.543 MB / 0.7136 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.19e-05/1.298, allocations: 0 / 0.7136 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.156e-06/1.298, allocations: 0 / 0.7136 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.531e-05/1.298, allocations: 4 kB / 0.7136 GB, free: 3.922 MB / 0.5137 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.00648/1.305, allocations: 2.026 MB / 0.7156 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 7.857e-05/1.305, allocations: 8.031 kB / 0.7156 GB, free: 1.824 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003001/1.305, allocations: 181.8 kB / 0.7157 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004847/1.306, allocations: 167 kB / 0.7159 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/1.308, allocations: 0.9045 MB / 0.7168 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/1.308, allocations: 94.95 kB / 0.7169 GB, free: 440 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002059/1.308, allocations: 123.9 kB / 0.717 GB, free: 316 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003254/1.311, allocations: 1.52 MB / 0.7185 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/1.311, allocations: 3.938 kB / 0.7185 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001561/1.311, allocations: 52 kB / 0.7185 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.353e-05/1.311, allocations: 31.94 kB / 0.7186 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003449/1.315, allocations: 1.668 MB / 0.7202 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/1.326, allocations: 6.274 MB / 0.7263 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003082/1.329, allocations: 1.28 MB / 0.7276 GB, free: 4.812 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/1.331, allocations: 0.7036 MB / 0.7283 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007396/1.338, allocations: 4.006 MB / 0.7322 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001748/1.34, allocations: 0.7278 MB / 0.7329 GB, free: 14.91 MB / 0.545 GB Notification: Performance of pre-optimization done (n=128): time 4.789e-06/1.34, allocations: 0 / 0.7329 GB, free: 14.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=129): time 0.01069/1.351, allocations: 3.969 MB / 0.7367 GB, free: 10.84 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/1.351, allocations: 68.7 kB / 0.7368 GB, free: 10.76 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/1.353, allocations: 0.7165 MB / 0.7375 GB, free: 10.04 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001236/1.353, allocations: 49.7 kB / 0.7376 GB, free: 9.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000752/1.354, allocations: 0.5239 MB / 0.7381 GB, free: 9.449 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006114/1.354, allocations: 425.7 kB / 0.7385 GB, free: 9.027 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000494/1.355, allocations: 210.8 kB / 0.7387 GB, free: 8.816 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002231/1.355, allocations: 361.8 kB / 0.739 GB, free: 8.457 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/1.356, allocations: 0.5101 MB / 0.7395 GB, free: 7.945 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/1.358, allocations: 0.6251 MB / 0.7401 GB, free: 7.301 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002891/1.361, allocations: 1.236 MB / 0.7413 GB, free: 6.039 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/1.361, allocations: 0 / 0.7413 GB, free: 6.039 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004162/1.365, allocations: 1.595 MB / 0.7429 GB, free: 4.426 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.71e-05/1.365, allocations: 41.62 kB / 0.7429 GB, free: 4.379 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/1.365, allocations: 0 / 0.7429 GB, free: 4.379 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006625/1.366, allocations: 156.8 kB / 0.7431 GB, free: 4.223 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/1.367, allocations: 251.7 kB / 0.7433 GB, free: 3.977 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00598/1.373, allocations: 2.728 MB / 0.746 GB, free: 1.113 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/1.374, allocations: 47.91 kB / 0.746 GB, free: 1.066 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/1.374, allocations: 53.53 kB / 0.7461 GB, free: 1.016 MB / 0.545 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.001086/1.375, allocations: 310.4 kB / 0.7464 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005388/1.376, allocations: 110.6 kB / 0.7465 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006116/1.382, allocations: 2.318 MB / 0.7488 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-05/1.382, allocations: 16 kB / 0.7488 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/1.382, allocations: 0 / 0.7488 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.79e-05/1.382, allocations: 11.97 kB / 0.7488 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008426/1.39, allocations: 3.419 MB / 0.7521 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.39, allocations: 0 / 0.7521 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/1.392, allocations: 275.7 kB / 0.7524 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005748/1.392, allocations: 144.6 kB / 0.7525 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001925/1.392, allocations: 43.97 kB / 0.7526 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004133/1.397, allocations: 2.45 MB / 0.755 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/1.397, allocations: 11.88 kB / 0.755 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006149/1.403, allocations: 2.599 MB / 0.7575 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006383/1.403, allocations: 183.6 kB / 0.7577 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004126/1.404, allocations: 28 kB / 0.7577 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/1.405, allocations: 51.95 kB / 0.7578 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004156/1.405, allocations: 117.2 kB / 0.7579 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/1.406, allocations: 51.92 kB / 0.7579 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001037/1.407, allocations: 0.5194 MB / 0.7584 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.1e-07/1.407, allocations: 0 / 0.7584 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003029/1.41, allocations: 0.5155 MB / 0.7589 GB, free: 3.598 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.008358/1.418, allocations: 3.611 MB / 0.7625 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006174/1.424, allocations: 1.852 MB / 0.7643 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.424, allocations: 0 / 0.7643 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00242/1.427, allocations: 0.9982 MB / 0.7652 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/1.43, allocations: 394.7 kB / 0.7656 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02762/1.457, allocations: 10.74 MB / 0.7761 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/1.459, allocations: 1.194 MB / 0.7773 GB, free: 356 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001842/1.461, allocations: 355.1 kB / 0.7776 GB, free: 44 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/1.463, allocations: 0.5774 MB / 0.7782 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of SimCode: time 2.164e-06/1.463, allocations: 7.938 kB / 0.7782 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1363/1.599, allocations: 37.87 MB / 0.8152 GB, free: 9.859 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.13/18.73, allocations: 0 / 0.8152 GB, free: 9.859 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches