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: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 109.1 kB / 15.99 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 189.2 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7587/0.7587, allocations: 93.69 MB / 384.4 MB, free: 5.445 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002305/0.002305, allocations: 83.88 kB / 463.6 MB, free: 6.477 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1392, allocations: 68.26 MB / 0.5194 GB, free: 2.137 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3756/0.5148, allocations: 171.8 MB / 0.6871 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01606/0.5309, allocations: 11.08 MB / 0.698 GB, free: 8.496 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.5324, allocations: 59.62 kB / 0.698 GB, free: 8.438 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002221/0.5346, allocations: 0.7152 MB / 0.6987 GB, free: 7.719 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004285/0.5389, allocations: 1.551 MB / 0.7002 GB, free: 6.16 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002982/0.5419, allocations: 1.021 MB / 0.7012 GB, free: 5.137 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003505/0.5455, allocations: 2.534 MB / 0.7037 GB, free: 2.594 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008421/0.5463, allocations: 486 kB / 0.7042 GB, free: 2.141 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.5483, allocations: 1.043 MB / 0.7052 GB, free: 1.094 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.5505, allocations: 1.378 MB / 0.7065 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003452/0.5509, allocations: 147.9 kB / 0.7067 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004342/0.5552, allocations: 1.946 MB / 0.7086 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000487/0.5557, allocations: 362.7 kB / 0.7089 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.557, allocations: 0.8124 MB / 0.7097 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002994/0.56, allocations: 1.914 MB / 0.7116 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.56, allocations: 0 / 0.7116 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.744e-06/0.5601, allocations: 1.594 kB / 0.7116 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.654e-05/0.5601, allocations: 0 / 0.7116 GB, free: 10.53 MB / 0.5606 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.004572/0.5647, allocations: 2.034 MB / 0.7136 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.5647, allocations: 8.031 kB / 0.7136 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003873/0.5651, allocations: 167 kB / 0.7137 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.5667, allocations: 0.9084 MB / 0.7146 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.197e-05/0.5668, allocations: 90.78 kB / 0.7147 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/0.567, allocations: 124.1 kB / 0.7148 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002856/0.5698, allocations: 1.526 MB / 0.7163 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.5699, allocations: 0 / 0.7163 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.57, allocations: 52 kB / 0.7164 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.57, allocations: 28 kB / 0.7164 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002965/0.573, allocations: 1.661 MB / 0.718 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008141/0.5811, allocations: 6.246 MB / 0.7241 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/0.5837, allocations: 1.282 MB / 0.7254 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.5849, allocations: 0.7036 MB / 0.7261 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005349/0.5903, allocations: 4.013 MB / 0.73 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/0.5917, allocations: 0.729 MB / 0.7307 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=128): time 4.999e-06/0.5917, allocations: 7.922 kB / 0.7307 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of matching and sorting (n=129): time 0.008292/0.6, allocations: 3.965 MB / 0.7346 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.6001, allocations: 68.72 kB / 0.7346 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009616/0.6011, allocations: 0.7126 MB / 0.7353 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.535e-05/0.6012, allocations: 49.7 kB / 0.7354 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.6017, allocations: 0.5317 MB / 0.7359 GB, free: 308 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.2003/0.802, allocations: 424.6 kB / 0.7363 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003486/0.8023, allocations: 206.9 kB / 0.7365 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.8024, allocations: 349.1 kB / 0.7368 GB, free: 178.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008876/0.8033, allocations: 0.5128 MB / 0.7373 GB, free: 178.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009437/0.8043, allocations: 0.6223 MB / 0.7379 GB, free: 178.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/0.8061, allocations: 1.244 MB / 0.7392 GB, free: 178 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.8061, allocations: 0 / 0.7392 GB, free: 178 MB / 0.5762 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002652/0.8088, allocations: 1.599 MB / 0.7407 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.8088, allocations: 35.44 kB / 0.7407 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.8088, allocations: 2.844 kB / 0.7408 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004976/0.8093, allocations: 155.9 kB / 0.7409 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009011/0.8103, allocations: 250.4 kB / 0.7411 GB, free: 177.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003307/0.8136, allocations: 2.71 MB / 0.7438 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007974/0.8144, allocations: 91.64 kB / 0.7439 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.8145, allocations: 53.66 kB / 0.7439 GB, free: 176.3 MB / 0.5762 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.0004427/0.815, allocations: 293 kB / 0.7442 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.8152, allocations: 113.9 kB / 0.7443 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003584/0.8187, allocations: 2.33 MB / 0.7466 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.8188, allocations: 13.75 kB / 0.7466 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.8188, allocations: 7.375 kB / 0.7466 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.8188, allocations: 8.062 kB / 0.7466 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00462/0.8234, allocations: 3.423 MB / 0.75 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.8235, allocations: 0 / 0.75 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008891/0.8243, allocations: 267.8 kB / 0.7502 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003824/0.8247, allocations: 145.8 kB / 0.7504 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.848e-05/0.8248, allocations: 47.08 kB / 0.7504 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002059/0.8269, allocations: 2.446 MB / 0.7528 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.8269, allocations: 8.031 kB / 0.7528 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/0.8307, allocations: 2.589 MB / 0.7553 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.831, allocations: 187 kB / 0.7555 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.8311, allocations: 30.88 kB / 0.7555 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006759/0.8318, allocations: 89.67 kB / 0.7556 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.8321, allocations: 112.7 kB / 0.7557 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.8322, allocations: 54.86 kB / 0.7558 GB, free: 173 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005693/0.8327, allocations: 0.5194 MB / 0.7563 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8327, allocations: 0 / 0.7563 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001392/0.8341, allocations: 0.5111 MB / 0.7568 GB, free: 172.7 MB / 0.5762 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.0008707/0.835, allocations: 0.571 MB / 0.7573 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004571/0.8396, allocations: 1.852 MB / 0.7591 GB, free: 171.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.8396, allocations: 0 / 0.7591 GB, free: 171.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.8413, allocations: 0.9957 MB / 0.7601 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.8434, allocations: 396.6 kB / 0.7605 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004436/0.8478, allocations: 3.258 MB / 0.7637 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006063/0.8484, allocations: 1.191 MB / 0.7648 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005088/0.8489, allocations: 161.6 kB / 0.765 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/0.849, allocations: 1.125 kB / 0.765 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.03648/0.8854, allocations: 29.96 MB / 0.7943 GB, free: 158 MB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (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 & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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