Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001859/0.001859, allocations: 109 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002515/0.002515, allocations: 192.6 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7812/0.7812, allocations: 94.59 MB / 400.9 MB, free: 15.21 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002465/0.002465, allocations: 82.8 kB / 0.5472 GB, free: 42.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.127, allocations: 71.88 MB / 0.6174 GB, free: 8.125 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.06246/0.1895, allocations: 54.31 MB / 0.6704 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0274/0.2169, allocations: 21.83 MB / 0.6917 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001995/0.2189, allocations: 99.06 kB / 0.6918 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.2213, allocations: 0.9042 MB / 0.6927 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005299/0.2266, allocations: 1.731 MB / 0.6944 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004375/0.2309, allocations: 1.362 MB / 0.6957 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005029/0.236, allocations: 2.587 MB / 0.6982 GB, free: 5 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008795/0.2369, allocations: 314.7 kB / 0.6985 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002707/0.2396, allocations: 1.113 MB / 0.6996 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.241, allocations: 0.9639 MB / 0.7006 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000224/0.2412, allocations: 124 kB / 0.7007 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004179/0.2454, allocations: 1.284 MB / 0.7019 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004149/0.2458, allocations: 346.4 kB / 0.7023 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.2469, allocations: 0.905 MB / 0.7032 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.006469/0.2534, allocations: 2.688 MB / 0.7058 GB, free: 13.22 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2534, allocations: 0 / 0.7058 GB, free: 13.22 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.724e-06/0.2534, allocations: 0 / 0.7058 GB, free: 13.22 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.628e-05/0.2534, allocations: 0 / 0.7058 GB, free: 13.22 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.004805/0.2582, allocations: 2.353 MB / 0.7081 GB, free: 10.82 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2583, allocations: 11.97 kB / 0.7081 GB, free: 10.81 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004391/0.2587, allocations: 234.5 kB / 0.7083 GB, free: 10.58 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002428/0.2611, allocations: 1.183 MB / 0.7095 GB, free: 9.352 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.629e-05/0.2612, allocations: 86.28 kB / 0.7095 GB, free: 9.266 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.2614, allocations: 120 kB / 0.7097 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002366/0.2638, allocations: 1.222 MB / 0.7109 GB, free: 7.883 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/0.2638, allocations: 0 / 0.7109 GB, free: 7.883 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.2639, allocations: 51.94 kB / 0.7109 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.297e-05/0.2639, allocations: 31.94 kB / 0.7109 GB, free: 7.801 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.266, allocations: 1.165 MB / 0.7121 GB, free: 6.629 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00742/0.2734, allocations: 4.969 MB / 0.7169 GB, free: 1.219 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.275, allocations: 0.8125 MB / 0.7177 GB, free: 400 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007592/0.2758, allocations: 430.3 kB / 0.7181 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004046/0.2798, allocations: 1.768 MB / 0.7199 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.2799, allocations: 43.56 kB / 0.7199 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 2.504e-06/0.2799, allocations: 0 / 0.7199 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003656/0.2836, allocations: 1.493 MB / 0.7214 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.2836, allocations: 64.41 kB / 0.7214 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/0.2854, allocations: 1.284 MB / 0.7227 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.165e-05/0.2855, allocations: 45.64 kB / 0.7227 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006709/0.2861, allocations: 0.7622 MB / 0.7235 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003144/0.2865, allocations: 372.8 kB / 0.7238 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.2867, allocations: 174.6 kB / 0.724 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.2869, allocations: 337.9 kB / 0.7243 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006044/0.2875, allocations: 305.9 kB / 0.7246 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007457/0.2882, allocations: 434 kB / 0.725 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001416/0.2897, allocations: 0.7699 MB / 0.7258 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.2897, allocations: 7.938 kB / 0.7258 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002451/0.2921, allocations: 1.147 MB / 0.7269 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.2921, allocations: 8 kB / 0.7269 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.2922, allocations: 4 kB / 0.7269 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006667/0.2928, allocations: 162.7 kB / 0.7271 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007548/0.2936, allocations: 195.7 kB / 0.7272 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/0.298, allocations: 4.511 MB / 0.7316 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008795/0.2989, allocations: 87.33 kB / 0.7317 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.299, allocations: 48.05 kB / 0.7318 GB, free: 1.457 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * 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.0006169/0.2996, allocations: 265.7 kB / 0.732 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/0.3, allocations: 174.8 kB / 0.7322 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003083/0.3031, allocations: 1.642 MB / 0.7338 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.3031, allocations: 12 kB / 0.7338 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3031, allocations: 4 kB / 0.7338 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.3031, allocations: 3.984 kB / 0.7338 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004641/0.3077, allocations: 2.593 MB / 0.7364 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.3077, allocations: 7.938 kB / 0.7364 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006152/0.3083, allocations: 163.8 kB / 0.7365 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000623/0.309, allocations: 174.5 kB / 0.7367 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.98e-05/0.309, allocations: 31.98 kB / 0.7367 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004541/0.3136, allocations: 4.515 MB / 0.7411 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3136, allocations: 0 / 0.7411 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.3169, allocations: 1.627 MB / 0.7427 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007898/0.3177, allocations: 278.5 kB / 0.743 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.3179, allocations: 23.94 kB / 0.743 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005847/0.3185, allocations: 27.98 kB / 0.743 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/0.3187, allocations: 92.78 kB / 0.7431 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.811e-05/0.3188, allocations: 39.97 kB / 0.7432 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001393/0.3202, allocations: 0.9093 MB / 0.744 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.3202, allocations: 0 / 0.744 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001728/0.3219, allocations: 0.5961 MB / 0.7446 GB, free: 3.793 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001224/0.3231, allocations: 0.7303 MB / 0.7453 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002326/0.3255, allocations: 1.142 MB / 0.7464 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3255, allocations: 4 kB / 0.7465 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.3268, allocations: 0.7865 MB / 0.7472 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.329, allocations: 0.5272 MB / 0.7477 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3053/0.6343, allocations: 2.814 MB / 0.7505 GB, free: 123.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.6355, allocations: 1.267 MB / 0.7517 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001754/0.6373, allocations: 285.1 kB / 0.752 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/0.6377, allocations: 139.7 kB / 0.7521 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/0.6377, allocations: 0 / 0.7521 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.05002/0.6877, allocations: 30.23 MB / 0.7816 GB, free: 106.6 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.979991866275668]