Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_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_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.001473/0.001473, allocations: 112.5 kB / 15.73 MB, free: 76 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.001748/0.001748, allocations: 189.7 kB / 16.66 MB, free: 6.582 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.417/1.417, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6755/0.6755, allocations: 91.19 MB / 381.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 75.88 kB / 0.5168 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1132, allocations: 67.69 MB / 0.5829 GB, free: 5.23 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4196/0.5329, allocations: 173.1 MB / 0.752 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01358/0.5465, allocations: 10.99 MB / 0.7628 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.5479, allocations: 51.69 kB / 0.7628 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.5502, allocations: 0.8076 MB / 0.7636 GB, free: 14.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004428/0.5547, allocations: 1.663 MB / 0.7652 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003114/0.5578, allocations: 1.118 MB / 0.7663 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003238/0.5611, allocations: 2.538 MB / 0.7688 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000817/0.5619, allocations: 479.6 kB / 0.7692 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.5639, allocations: 1.043 MB / 0.7703 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00208/0.566, allocations: 1.351 MB / 0.7716 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0004246/0.5664, allocations: 144 kB / 0.7717 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004331/0.5708, allocations: 1.938 MB / 0.7736 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000495/0.5713, allocations: 358.7 kB / 0.774 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.5726, allocations: 0.8047 MB / 0.7747 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004633/0.5772, allocations: 2.608 MB / 0.7773 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.5772, allocations: 4 kB / 0.7773 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5772, allocations: 0 / 0.7773 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.121e-05/0.5773, allocations: 4 kB / 0.7773 GB, free: 0.9102 MB / 0.6075 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.004388/0.5817, allocations: 2.073 MB / 0.7793 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.5818, allocations: 16.03 kB / 0.7793 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004486/0.5822, allocations: 175.9 kB / 0.7795 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/0.5839, allocations: 0.9913 MB / 0.7805 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.451e-05/0.584, allocations: 86.78 kB / 0.7806 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002027/0.5842, allocations: 120.4 kB / 0.7807 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002738/0.587, allocations: 1.532 MB / 0.7822 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.587, allocations: 0 / 0.7822 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.5872, allocations: 48 kB / 0.7822 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.5872, allocations: 32 kB / 0.7822 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002842/0.59, allocations: 1.665 MB / 0.7839 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007523/0.5976, allocations: 6.257 MB / 0.79 GB, free: 3.152 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002494/0.6001, allocations: 1.279 MB / 0.7912 GB, free: 1.855 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.6013, allocations: 0.7036 MB / 0.7919 GB, free: 1.152 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005057/0.6064, allocations: 4.01 MB / 0.7958 GB, free: 12.69 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/0.6078, allocations: 0.7316 MB / 0.7965 GB, free: 11.95 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=128): time 3.798e-06/0.6078, allocations: 0 / 0.7965 GB, free: 11.95 MB / 0.6387 GB Notification: Performance of matching and sorting (n=129): time 0.007921/0.6157, allocations: 3.995 MB / 0.8004 GB, free: 7.859 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.6158, allocations: 68.66 kB / 0.8005 GB, free: 7.781 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009301/0.6167, allocations: 0.7127 MB / 0.8012 GB, free: 7.059 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.6169, allocations: 45.7 kB / 0.8013 GB, free: 7.008 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004047/0.6173, allocations: 0.5249 MB / 0.8018 GB, free: 6.477 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003752/0.6177, allocations: 460 kB / 0.8022 GB, free: 6.023 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003602/0.618, allocations: 206.9 kB / 0.8024 GB, free: 5.812 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6182, allocations: 349.9 kB / 0.8027 GB, free: 5.465 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009886/0.6192, allocations: 0.514 MB / 0.8032 GB, free: 4.953 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.6203, allocations: 0.6212 MB / 0.8038 GB, free: 4.312 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.6225, allocations: 1.248 MB / 0.8051 GB, free: 3.039 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.6225, allocations: 0 / 0.8051 GB, free: 3.039 MB / 0.6387 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003116/0.6256, allocations: 1.596 MB / 0.8066 GB, free: 1.426 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/0.6257, allocations: 33.7 kB / 0.8067 GB, free: 1.387 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.6257, allocations: 7.875 kB / 0.8067 GB, free: 1.379 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000572/0.6263, allocations: 164.8 kB / 0.8068 GB, free: 1.215 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009852/0.6273, allocations: 243.7 kB / 0.8071 GB, free: 0.9766 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00402/0.6313, allocations: 2.728 MB / 0.8097 GB, free: 14.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007951/0.6321, allocations: 51.94 kB / 0.8098 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.6323, allocations: 51.98 kB / 0.8098 GB, free: 14.02 MB / 0.6544 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.0005488/0.6329, allocations: 285.6 kB / 0.8101 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.6331, allocations: 119.2 kB / 0.8102 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/0.6375, allocations: 2.32 MB / 0.8125 GB, free: 11.31 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.6376, allocations: 23.94 kB / 0.8125 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.6376, allocations: 0 / 0.8125 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.6376, allocations: 11.97 kB / 0.8125 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005873/0.6435, allocations: 3.413 MB / 0.8158 GB, free: 7.785 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.6435, allocations: 0 / 0.8158 GB, free: 7.785 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009923/0.6445, allocations: 259.7 kB / 0.8161 GB, free: 7.531 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000434/0.645, allocations: 148.8 kB / 0.8162 GB, free: 7.383 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.6451, allocations: 51.92 kB / 0.8163 GB, free: 7.332 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.6479, allocations: 2.459 MB / 0.8187 GB, free: 4.742 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.648, allocations: 4 kB / 0.8187 GB, free: 4.738 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004721/0.6527, allocations: 2.597 MB / 0.8212 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.653, allocations: 192.2 kB / 0.8214 GB, free: 1.898 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.6532, allocations: 35.94 kB / 0.8214 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006458/0.6539, allocations: 43.97 kB / 0.8215 GB, free: 1.82 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.6542, allocations: 121.2 kB / 0.8216 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/0.6543, allocations: 55.97 kB / 0.8216 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007081/0.655, allocations: 0.5233 MB / 0.8222 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.655, allocations: 0 / 0.8222 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001493/0.6565, allocations: 0.5071 MB / 0.8226 GB, free: 0.6016 MB / 0.6544 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.0009556/0.6575, allocations: 0.5732 MB / 0.8232 GB, free: 32 kB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00307/0.6606, allocations: 1.633 MB / 0.8248 GB, free: 14.37 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.6606, allocations: 0 / 0.8248 GB, free: 14.37 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.6624, allocations: 0.9982 MB / 0.8258 GB, free: 13.36 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.6643, allocations: 390.6 kB / 0.8261 GB, free: 12.99 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.669, allocations: 2.648 MB / 0.8287 GB, free: 10.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007929/0.6699, allocations: 1.191 MB / 0.8299 GB, free: 9.074 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001147/0.671, allocations: 361.3 kB / 0.8302 GB, free: 8.766 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004229/0.6715, allocations: 155.4 kB / 0.8304 GB, free: 8.613 MB / 0.67 GB Notification: Performance of SimCode: time 8.52e-07/0.6715, allocations: 0 / 0.8304 GB, free: 8.613 MB / 0.67 GB Notification: Performance of Templates: time 0.2899/0.9614, allocations: 26.58 MB / 0.8564 GB, free: 220.3 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches