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.001237/0.001237, allocations: 102.1 kB / 19.7 MB, free: 2.246 MB / 14.72 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.001372/0.001372, allocations: 222 kB / 23.01 MB, free: 5.086 MB / 14.72 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.321/1.321, allocations: 230.6 MB / 256.8 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 179] 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 0.6966/0.6966, allocations: 100.3 MB / 413.5 MB, free: 3.641 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002413/0.002413, allocations: 88.42 kB / 0.5645 GB, free: 35.57 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1064, allocations: 74.47 MB / 0.6372 GB, free: 7.145 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05512/0.1615, allocations: 54.35 MB / 0.6903 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02411/0.1856, allocations: 21.82 MB / 0.7116 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.1871, allocations: 99.06 kB / 0.7117 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.1894, allocations: 0.9041 MB / 0.7126 GB, free: 9.699 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004353/0.1937, allocations: 1.731 MB / 0.7143 GB, free: 7.957 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003504/0.1972, allocations: 1.368 MB / 0.7156 GB, free: 6.586 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003577/0.2008, allocations: 2.586 MB / 0.7181 GB, free: 3.984 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006481/0.2015, allocations: 314.7 kB / 0.7184 GB, free: 3.645 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001914/0.2034, allocations: 1.113 MB / 0.7195 GB, free: 2.527 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001391/0.2048, allocations: 0.9523 MB / 0.7204 GB, free: 1.57 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002903/0.2051, allocations: 131.9 kB / 0.7206 GB, free: 1.441 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003362/0.2084, allocations: 1.291 MB / 0.7218 GB, free: 152 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000394/0.2088, allocations: 350.3 kB / 0.7222 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.2099, allocations: 0.901 MB / 0.723 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004616/0.2145, allocations: 2.685 MB / 0.7257 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2145, allocations: 4 kB / 0.7257 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2145, allocations: 0 / 0.7257 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.37e-05/0.2146, allocations: 3.984 kB / 0.7257 GB, free: 12.2 MB / 0.5606 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.004381/0.2189, allocations: 2.353 MB / 0.728 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.219, allocations: 8.031 kB / 0.728 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.2194, allocations: 230.5 kB / 0.7282 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.2216, allocations: 1.183 MB / 0.7293 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.595e-05/0.2217, allocations: 86.28 kB / 0.7294 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.2219, allocations: 120 kB / 0.7295 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.2238, allocations: 1.229 MB / 0.7307 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.2239, allocations: 3.938 kB / 0.7307 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.691e-05/0.224, allocations: 51.94 kB / 0.7308 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.224, allocations: 24 kB / 0.7308 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.2259, allocations: 1.176 MB / 0.732 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006348/0.2322, allocations: 4.953 MB / 0.7368 GB, free: 208 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/0.2337, allocations: 0.8272 MB / 0.7376 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006926/0.2344, allocations: 430.3 kB / 0.738 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003446/0.2378, allocations: 1.765 MB / 0.7397 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.2378, allocations: 47.5 kB / 0.7398 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=103): time 2.134e-06/0.2378, allocations: 0 / 0.7398 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=103): time 0.003325/0.2412, allocations: 1.497 MB / 0.7413 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.2412, allocations: 64.41 kB / 0.7413 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.2428, allocations: 1.288 MB / 0.7426 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/0.2429, allocations: 41.7 kB / 0.7426 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005965/0.2435, allocations: 0.7622 MB / 0.7434 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002848/0.2438, allocations: 372.8 kB / 0.7437 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.244, allocations: 170.6 kB / 0.7439 GB, free: 8.867 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2442, allocations: 337.9 kB / 0.7442 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005665/0.2447, allocations: 305.9 kB / 0.7445 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/0.2454, allocations: 441.9 kB / 0.7449 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.2467, allocations: 0.7698 MB / 0.7457 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.2467, allocations: 7.938 kB / 0.7457 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002082/0.2488, allocations: 1.143 MB / 0.7468 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.2488, allocations: 8 kB / 0.7468 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2488, allocations: 4 kB / 0.7468 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005779/0.2494, allocations: 170.7 kB / 0.747 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006665/0.2501, allocations: 195.8 kB / 0.7471 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004068/0.2542, allocations: 4.509 MB / 0.7516 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006355/0.2548, allocations: 87.34 kB / 0.7516 GB, free: 488 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.614e-05/0.2549, allocations: 43.98 kB / 0.7517 GB, free: 444 kB / 0.5762 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.0004362/0.2553, allocations: 277.6 kB / 0.7519 GB, free: 156 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2358/0.4911, allocations: 169.8 kB / 0.7521 GB, free: 111 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003057/0.4942, allocations: 1.636 MB / 0.7537 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.4942, allocations: 11.94 kB / 0.7537 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4942, allocations: 2.625 kB / 0.7537 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.4942, allocations: 8.719 kB / 0.7537 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.4982, allocations: 2.589 MB / 0.7563 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4982, allocations: 3.594 kB / 0.7563 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005513/0.4987, allocations: 172.3 kB / 0.7564 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004765/0.4992, allocations: 165.7 kB / 0.7566 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-05/0.4992, allocations: 35.89 kB / 0.7566 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.5019, allocations: 4.51 MB / 0.761 GB, free: 105.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.5019, allocations: 6.5 kB / 0.761 GB, free: 105.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/0.5044, allocations: 1.632 MB / 0.7626 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004963/0.5049, allocations: 274.1 kB / 0.7629 GB, free: 104.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.505, allocations: 27 kB / 0.7629 GB, free: 104.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000515/0.5056, allocations: 30.55 kB / 0.7629 GB, free: 104.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.5057, allocations: 85.56 kB / 0.763 GB, free: 104.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.926e-05/0.5058, allocations: 41.55 kB / 0.7631 GB, free: 104.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001111/0.5069, allocations: 0.9131 MB / 0.7639 GB, free: 104.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.5069, allocations: 0 / 0.7639 GB, free: 104.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001265/0.5082, allocations: 0.5906 MB / 0.7645 GB, free: 104.1 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.0008275/0.509, allocations: 0.7287 MB / 0.7652 GB, free: 104 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001692/0.5107, allocations: 1.138 MB / 0.7663 GB, free: 103.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5107, allocations: 0 / 0.7663 GB, free: 103.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009742/0.5117, allocations: 0.7937 MB / 0.7671 GB, free: 102.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.5136, allocations: 0.5273 MB / 0.7676 GB, free: 102.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.5181, allocations: 2.857 MB / 0.7704 GB, free: 101.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007562/0.5189, allocations: 1.263 MB / 0.7717 GB, free: 100.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.5193, allocations: 148.1 kB / 0.7718 GB, free: 100.5 MB / 0.5762 GB Notification: Performance of SimCode: time 7.11e-07/0.5193, allocations: 0 / 0.7718 GB, free: 100.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.03907/0.5584, allocations: 47.16 MB / 0.8179 GB, free: 61.56 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/jenkins1/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: 10.875365403015167]