Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001954/0.001954, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.447/1.447, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.732/0.732, allocations: 93.68 MB / 384.7 MB, free: 5.363 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002536/0.002536, allocations: 83.86 kB / 464.1 MB, free: 6.184 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1284, allocations: 68.27 MB / 0.5199 GB, free: 1.832 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.2425/0.3709, allocations: 65.08 MB / 0.5834 GB, free: 2.766 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02156/0.3925, allocations: 17.62 MB / 0.6006 GB, free: 6.199 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002622/0.3952, allocations: 79.62 kB / 0.6007 GB, free: 6.168 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00333/0.3986, allocations: 1.19 MB / 0.6019 GB, free: 5.469 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008506/0.4071, allocations: 2.811 MB / 0.6046 GB, free: 3.754 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004723/0.4118, allocations: 1.545 MB / 0.6061 GB, free: 2.633 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.005885/0.4177, allocations: 3.863 MB / 0.6099 GB, free: 444 kB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.4189, allocations: 0.6287 MB / 0.6105 GB, free: 180 kB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003436/0.4224, allocations: 1.599 MB / 0.6121 GB, free: 15.26 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002405/0.4248, allocations: 1.519 MB / 0.6135 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003979/0.4252, allocations: 191.2 kB / 0.6137 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005264/0.4305, allocations: 1.675 MB / 0.6154 GB, free: 13.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005426/0.4311, allocations: 497.8 kB / 0.6158 GB, free: 13.04 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.4329, allocations: 1.259 MB / 0.6171 GB, free: 11.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006879/0.4397, allocations: 3.733 MB / 0.6207 GB, free: 8.027 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4398, allocations: 4 kB / 0.6207 GB, free: 8.023 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4398, allocations: 0 / 0.6207 GB, free: 8.023 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.282e-05/0.4398, allocations: 0 / 0.6207 GB, free: 8.023 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.006063/0.4459, allocations: 2.995 MB / 0.6236 GB, free: 4.961 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.4459, allocations: 8.031 kB / 0.6236 GB, free: 4.953 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006043/0.4466, allocations: 277.7 kB / 0.6239 GB, free: 4.68 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.4487, allocations: 1.355 MB / 0.6252 GB, free: 3.273 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/0.4489, allocations: 140.1 kB / 0.6254 GB, free: 3.137 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002632/0.4491, allocations: 193.5 kB / 0.6256 GB, free: 2.949 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003757/0.4529, allocations: 2.163 MB / 0.6277 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.303e-05/0.453, allocations: 0 / 0.6277 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001538/0.4531, allocations: 76 kB / 0.6277 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.4532, allocations: 48 kB / 0.6278 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003906/0.4571, allocations: 2.271 MB / 0.63 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01107/0.4682, allocations: 9.033 MB / 0.6388 GB, free: 4.488 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003261/0.4715, allocations: 1.909 MB / 0.6407 GB, free: 2.605 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.473, allocations: 0.9828 MB / 0.6416 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008403/0.4815, allocations: 6.782 MB / 0.6483 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001834/0.4833, allocations: 0.9658 MB / 0.6492 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=200): time 5.21e-06/0.4833, allocations: 5.531 kB / 0.6492 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of matching and sorting (n=200): time 0.006137/0.4895, allocations: 2.998 MB / 0.6521 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.4896, allocations: 69.41 kB / 0.6522 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001538/0.4911, allocations: 1.241 MB / 0.6534 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.4912, allocations: 61.7 kB / 0.6535 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007313/0.492, allocations: 0.8515 MB / 0.6543 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000582/0.4926, allocations: 0.666 MB / 0.655 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000483/0.4931, allocations: 327.5 kB / 0.6553 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.4932, allocations: 301.1 kB / 0.6556 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.4944, allocations: 0.656 MB / 0.6562 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001536/0.496, allocations: 0.8883 MB / 0.6571 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003015/0.499, allocations: 1.666 MB / 0.6587 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.499, allocations: 7.938 kB / 0.6587 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004307/0.5033, allocations: 2.151 MB / 0.6608 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.5034, allocations: 33.7 kB / 0.6608 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.5034, allocations: 8.125 kB / 0.6608 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000567/0.504, allocations: 166.4 kB / 0.661 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.5054, allocations: 397.5 kB / 0.6614 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00445/0.5099, allocations: 4.842 MB / 0.6661 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.5111, allocations: 158.2 kB / 0.6663 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002127/0.5113, allocations: 87.95 kB / 0.6663 GB, free: 6.695 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007198/0.512, allocations: 361.5 kB / 0.6667 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004223/0.5125, allocations: 197.6 kB / 0.6669 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006342/0.5188, allocations: 3.425 MB / 0.6702 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/0.5189, allocations: 20 kB / 0.6702 GB, free: 2.793 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.5189, allocations: 4 kB / 0.6702 GB, free: 2.789 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/0.5189, allocations: 11.95 kB / 0.6703 GB, free: 2.777 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00854/0.5274, allocations: 4.801 MB / 0.6749 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.5275, allocations: 3.938 kB / 0.675 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.5288, allocations: 404.1 kB / 0.6753 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004998/0.5293, allocations: 167.5 kB / 0.6755 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.5295, allocations: 75.95 kB / 0.6756 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004275/0.5338, allocations: 4.831 MB / 0.6803 GB, free: 7.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5338, allocations: 11.95 kB / 0.6803 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00631/0.5401, allocations: 3.314 MB / 0.6835 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009478/0.5411, allocations: 0.525 MB / 0.684 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003436/0.5414, allocations: 51.84 kB / 0.6841 GB, free: 4.027 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5425, allocations: 55.97 kB / 0.6842 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.5428, allocations: 177.7 kB / 0.6843 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000195/0.543, allocations: 91.64 kB / 0.6844 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00139/0.5444, allocations: 0.8626 MB / 0.6853 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5444, allocations: 4 kB / 0.6853 GB, free: 2.855 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002628/0.5471, allocations: 0.85 MB / 0.6861 GB, free: 2.004 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001592/0.5487, allocations: 0.8463 MB / 0.6869 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007803/0.5565, allocations: 2.36 MB / 0.6892 GB, free: 14.79 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5565, allocations: 0 / 0.6892 GB, free: 14.79 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002844/0.5594, allocations: 1.437 MB / 0.6906 GB, free: 13.32 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/0.5628, allocations: 0.6494 MB / 0.6913 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007826/0.5707, allocations: 3.958 MB / 0.6951 GB, free: 8.727 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/0.5721, allocations: 1.475 MB / 0.6966 GB, free: 7.215 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009198/0.5731, allocations: 267.3 kB / 0.6968 GB, free: 6.953 MB / 0.545 GB Notification: Performance of SimCode: time 5.21e-07/0.5731, allocations: 4 kB / 0.6968 GB, free: 6.949 MB / 0.545 GB Notification: Performance of Templates: time 0.2678/0.8409, allocations: 63.78 MB / 0.7591 GB, free: 185.8 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches