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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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=1000,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=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008017/0.008017, allocations: 101.1 kB / 15.73 MB, free: 6.004 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.001882/0.001882, allocations: 190.2 kB / 16.67 MB, free: 5.922 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7883/0.7883, allocations: 93.7 MB / 384.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002515/0.002515, allocations: 83.86 kB / 0.5204 GB, free: 0.582 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3028, allocations: 68.24 MB / 0.5871 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4982/0.801, allocations: 173.2 MB / 0.7562 GB, free: 1.23 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01252/0.8135, allocations: 10.99 MB / 0.7669 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.8152, allocations: 47.44 kB / 0.767 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00224/0.8175, allocations: 0.8016 MB / 0.7677 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004474/0.822, allocations: 1.665 MB / 0.7694 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003099/0.8251, allocations: 1.113 MB / 0.7705 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003559/0.8287, allocations: 2.524 MB / 0.7729 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007953/0.8295, allocations: 495.7 kB / 0.7734 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/0.8315, allocations: 1.042 MB / 0.7744 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002006/0.8336, allocations: 1.349 MB / 0.7757 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003673/0.8339, allocations: 143.9 kB / 0.7759 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004452/0.8384, allocations: 1.941 MB / 0.7778 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005135/0.8389, allocations: 367.5 kB / 0.7781 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.8402, allocations: 0.807 MB / 0.7789 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004938/0.8452, allocations: 2.612 MB / 0.7814 GB, free: 220 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.8452, allocations: 3.75 kB / 0.7815 GB, free: 220 kB / 0.5762 GB Notification: Performance of FrontEnd: time 2.023e-06/0.8452, allocations: 0 / 0.7815 GB, free: 220 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.566e-05/0.8453, allocations: 1.094 kB / 0.7815 GB, free: 220 kB / 0.5762 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.00439/0.8496, allocations: 2.073 MB / 0.7835 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.8497, allocations: 10.84 kB / 0.7835 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003859/0.8501, allocations: 175.6 kB / 0.7837 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.8516, allocations: 0.9863 MB / 0.7846 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.879e-05/0.8517, allocations: 92.19 kB / 0.7847 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.8519, allocations: 127.5 kB / 0.7848 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.8543, allocations: 1.528 MB / 0.7863 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.173e-05/0.8544, allocations: 3.094 kB / 0.7863 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.8545, allocations: 46.44 kB / 0.7864 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.8545, allocations: 30.06 kB / 0.7864 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.8571, allocations: 1.662 MB / 0.788 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007918/0.865, allocations: 6.222 MB / 0.7941 GB, free: 11.08 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.8674, allocations: 1.289 MB / 0.7954 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.8685, allocations: 0.7008 MB / 0.796 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005327/0.8738, allocations: 4.026 MB / 0.8 GB, free: 8.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001369/0.8752, allocations: 0.732 MB / 0.8007 GB, free: 8.285 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.707e-06/0.8753, allocations: 0 / 0.8007 GB, free: 8.285 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.008582/0.8839, allocations: 3.99 MB / 0.8046 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.884, allocations: 67.06 kB / 0.8046 GB, free: 6.195 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009968/0.885, allocations: 0.716 MB / 0.8053 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.8851, allocations: 47.48 kB / 0.8054 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.00051/0.8856, allocations: 0.5287 MB / 0.8059 GB, free: 5.438 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004702/0.8861, allocations: 460.5 kB / 0.8063 GB, free: 5.082 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004214/0.8865, allocations: 202.8 kB / 0.8065 GB, free: 4.988 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002107/0.8868, allocations: 350 kB / 0.8069 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.8879, allocations: 0.5139 MB / 0.8074 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.8891, allocations: 0.6243 MB / 0.808 GB, free: 4.188 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002572/0.8916, allocations: 1.249 MB / 0.8092 GB, free: 3.574 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.8917, allocations: 0 / 0.8092 GB, free: 3.574 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003475/0.8952, allocations: 1.599 MB / 0.8108 GB, free: 2.762 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.555e-05/0.8952, allocations: 35.81 kB / 0.8108 GB, free: 2.727 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.8953, allocations: 4.062 kB / 0.8108 GB, free: 2.727 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005771/0.8958, allocations: 154.3 kB / 0.8109 GB, free: 2.656 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.8969, allocations: 247 kB / 0.8112 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004533/0.9014, allocations: 2.729 MB / 0.8139 GB, free: 340 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.9025, allocations: 47.56 kB / 0.8139 GB, free: 312 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002439/0.9027, allocations: 60.72 kB / 0.814 GB, free: 288 kB / 0.5919 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.0007735/0.9035, allocations: 285.8 kB / 0.8142 GB, free: 68 kB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003522/0.9039, allocations: 125.4 kB / 0.8143 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005121/0.909, allocations: 2.315 MB / 0.8166 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.9091, allocations: 16 kB / 0.8166 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/0.9091, allocations: 4 kB / 0.8166 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.44e-05/0.9091, allocations: 8.594 kB / 0.8166 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006973/0.9161, allocations: 3.412 MB / 0.82 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.9162, allocations: 1.094 kB / 0.82 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.9172, allocations: 264.3 kB / 0.8202 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004785/0.9177, allocations: 147.9 kB / 0.8204 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.9179, allocations: 48.88 kB / 0.8204 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003166/0.921, allocations: 2.448 MB / 0.8228 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.9211, allocations: 4.062 kB / 0.8228 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005419/0.9265, allocations: 2.606 MB / 0.8253 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/0.9269, allocations: 192.2 kB / 0.8255 GB, free: 4.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003141/0.9272, allocations: 28.94 kB / 0.8256 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007654/0.928, allocations: 52.8 kB / 0.8256 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/0.9283, allocations: 114.1 kB / 0.8257 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/0.9285, allocations: 47.98 kB / 0.8258 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007988/0.9293, allocations: 0.5242 MB / 0.8263 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9293, allocations: 0 / 0.8263 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001797/0.9311, allocations: 0.5149 MB / 0.8268 GB, free: 3.172 MB / 0.6075 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.00122/0.9323, allocations: 0.5783 MB / 0.8273 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003595/0.9359, allocations: 1.64 MB / 0.8289 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.936, allocations: 0 / 0.8289 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001977/0.938, allocations: 0.995 MB / 0.8299 GB, free: 48 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/0.9402, allocations: 387.4 kB / 0.8303 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005354/0.9456, allocations: 2.652 MB / 0.8329 GB, free: 13 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.9466, allocations: 1.191 MB / 0.834 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001289/0.9479, allocations: 352 kB / 0.8344 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004479/0.9484, allocations: 155.3 kB / 0.8345 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of SimCode: time 2.845e-06/0.9484, allocations: 0 / 0.8345 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of Templates: time 0.04827/0.9967, allocations: 26.61 MB / 0.8605 GB, free: 0.9492 MB / 0.6387 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (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) [Timeout 1200] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches