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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 161.7 kB / 22.76 MB, free: 1.68 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 1.116/1.116, allocations: 118.6 MB / 378.2 MB, free: 1.445 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.733e-06/1.733e-06, allocations: 0 / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.523e-05/2.696e-05, allocations: 5.547 kB / 482.9 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.0668/0.06683, allocations: 52.2 MB / 0.5225 GB, free: 12.68 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.02757/0.0944, allocations: 17.51 MB / 0.5396 GB, free: 11.12 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002935/0.09734, allocations: 114.9 kB / 0.5398 GB, free: 11 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.1008, allocations: 0.8333 MB / 0.5406 GB, free: 10.16 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007899/0.1087, allocations: 1.908 MB / 0.5424 GB, free: 8.242 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005678/0.1143, allocations: 1.463 MB / 0.5439 GB, free: 6.773 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.006137/0.1205, allocations: 3.02 MB / 0.5468 GB, free: 3.738 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.1215, allocations: 307.2 kB / 0.5471 GB, free: 3.41 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004437/0.1259, allocations: 1.64 MB / 0.5487 GB, free: 1.766 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001478/0.1274, allocations: 0.7787 MB / 0.5495 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002447/0.1277, allocations: 128 kB / 0.5496 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00373/0.1314, allocations: 1.154 MB / 0.5507 GB, free: 15.7 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004245/0.1318, allocations: 370.1 kB / 0.5511 GB, free: 15.34 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.1329, allocations: 0.6427 MB / 0.5517 GB, free: 14.7 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007682/0.1406, allocations: 2.869 MB / 0.5545 GB, free: 11.82 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.1406, allocations: 7.938 kB / 0.5545 GB, free: 11.81 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1406, allocations: 0 / 0.5545 GB, free: 11.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.936e-05/0.1407, allocations: 0 / 0.5545 GB, free: 11.81 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.00566/0.1463, allocations: 2.51 MB / 0.557 GB, free: 9.254 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.1464, allocations: 12.03 kB / 0.557 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.1474, allocations: 406.9 kB / 0.5574 GB, free: 8.844 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003038/0.1505, allocations: 1.441 MB / 0.5588 GB, free: 7.352 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.867e-05/0.1506, allocations: 94.64 kB / 0.5589 GB, free: 7.258 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/0.1508, allocations: 128.3 kB / 0.559 GB, free: 7.133 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.1533, allocations: 1.331 MB / 0.5603 GB, free: 5.723 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.1533, allocations: 3.938 kB / 0.5603 GB, free: 5.719 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.1534, allocations: 52 kB / 0.5603 GB, free: 5.668 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.1534, allocations: 28 kB / 0.5604 GB, free: 5.641 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.1555, allocations: 1.149 MB / 0.5615 GB, free: 4.484 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007842/0.1633, allocations: 3.559 MB / 0.565 GB, free: 0.8398 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002016/0.1654, allocations: 0.838 MB / 0.5658 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008083/0.1662, allocations: 406.6 kB / 0.5662 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004488/0.1707, allocations: 1.509 MB / 0.5676 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.48e-05/0.1707, allocations: 47.56 kB / 0.5677 GB, free: 14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=103): time 2.895e-06/0.1707, allocations: 0 / 0.5677 GB, free: 14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=103): time 0.003894/0.1746, allocations: 1.478 MB / 0.5691 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.1747, allocations: 68.39 kB / 0.5692 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002286/0.177, allocations: 1.37 MB / 0.5705 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.765e-05/0.177, allocations: 45.7 kB / 0.5706 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009047/0.178, allocations: 0.8564 MB / 0.5714 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003895/0.1783, allocations: 372.7 kB / 0.5718 GB, free: 9.777 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/0.1786, allocations: 186.5 kB / 0.5719 GB, free: 9.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000213/0.1789, allocations: 341.9 kB / 0.5723 GB, free: 9.25 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005904/0.1795, allocations: 281.9 kB / 0.5725 GB, free: 8.973 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.1805, allocations: 0.7333 MB / 0.5732 GB, free: 8.102 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.1821, allocations: 0.8007 MB / 0.574 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1821, allocations: 0 / 0.574 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002825/0.1849, allocations: 1.217 MB / 0.5752 GB, free: 6.008 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.1849, allocations: 8 kB / 0.5752 GB, free: 6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.185, allocations: 4 kB / 0.5752 GB, free: 5.996 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.186, allocations: 214.6 kB / 0.5754 GB, free: 5.777 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007846/0.1868, allocations: 203.7 kB / 0.5756 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005133/0.1919, allocations: 4.423 MB / 0.5799 GB, free: 0.8477 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.1932, allocations: 99.31 kB / 0.58 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.1933, allocations: 43.98 kB / 0.5801 GB, free: 0.707 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (112): * Single equations (assignments): 109 * 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.0006894/0.194, allocations: 285.8 kB / 0.5804 GB, free: 428 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004413/0.1944, allocations: 222.7 kB / 0.5806 GB, free: 204 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003165/0.1976, allocations: 1.569 MB / 0.5821 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.1976, allocations: 8 kB / 0.5821 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1976, allocations: 4 kB / 0.5821 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.1976, allocations: 7.922 kB / 0.5821 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004522/0.2022, allocations: 2.181 MB / 0.5842 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.2022, allocations: 0 / 0.5842 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005899/0.2027, allocations: 155.8 kB / 0.5844 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009427/0.2037, allocations: 218.5 kB / 0.5846 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.857e-05/0.2038, allocations: 35.97 kB / 0.5846 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004998/0.2088, allocations: 4.429 MB / 0.589 GB, free: 7.215 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.2088, allocations: 8.016 kB / 0.589 GB, free: 7.207 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00355/0.2123, allocations: 1.567 MB / 0.5905 GB, free: 5.59 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007796/0.2131, allocations: 270.5 kB / 0.5908 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.2133, allocations: 27.94 kB / 0.5908 GB, free: 5.297 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005852/0.2139, allocations: 27.98 kB / 0.5908 GB, free: 5.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.2141, allocations: 84.78 kB / 0.5909 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/0.2142, allocations: 35.98 kB / 0.5909 GB, free: 5.152 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001555/0.2157, allocations: 0.9446 MB / 0.5919 GB, free: 4.184 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1e-07/0.2157, allocations: 0 / 0.5919 GB, free: 4.184 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001853/0.2176, allocations: 0.5886 MB / 0.5924 GB, free: 3.594 MB / 0.5105 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 (86): * Single equations (assignments): 83 * 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.001189/0.2188, allocations: 0.6643 MB / 0.5931 GB, free: 2.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002421/0.2212, allocations: 1.135 MB / 0.5942 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.2212, allocations: 0 / 0.5942 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.2225, allocations: 0.7551 MB / 0.5949 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003349/0.2259, allocations: 0.7276 MB / 0.5956 GB, free: 268 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006923/0.2328, allocations: 3.094 MB / 0.5987 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009281/0.2337, allocations: 0.7311 MB / 0.5994 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001284/0.235, allocations: 300.3 kB / 0.5997 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003509/0.2353, allocations: 144.4 kB / 0.5998 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of SimCode: time 1.744e-06/0.2354, allocations: 0 / 0.5998 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of Templates: time 0.06659/0.3019, allocations: 32.93 MB / 0.6319 GB, free: 11.66 MB / 0.5573 GB " [Timeout remaining time 660] 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: 7.6523490459658206]