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.001621/0.001621, allocations: 104.3 kB / 19.71 MB, free: 2.148 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.001755/0.001755, allocations: 207.9 kB / 23 MB, free: 4.965 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.483/1.483, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 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 0.8147/0.8147, allocations: 100.9 MB / 414.1 MB, free: 2.863 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.002552/0.002552, allocations: 88.23 kB / 0.5653 GB, free: 35.43 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1278, allocations: 74.62 MB / 0.6382 GB, free: 5.965 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05762/0.1854, allocations: 49.07 MB / 0.6861 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02605/0.2115, allocations: 19.75 MB / 0.7054 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.2136, allocations: 99.06 kB / 0.7055 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002569/0.2162, allocations: 0.7913 MB / 0.7062 GB, free: 12 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.2217, allocations: 1.7 MB / 0.7079 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004318/0.226, allocations: 1.335 MB / 0.7092 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004303/0.2303, allocations: 2.59 MB / 0.7117 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000726/0.231, allocations: 298.8 kB / 0.712 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002287/0.2333, allocations: 1.113 MB / 0.7131 GB, free: 8.914 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/0.2346, allocations: 0.878 MB / 0.714 GB, free: 8.031 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.2348, allocations: 124 kB / 0.7141 GB, free: 7.91 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003303/0.2381, allocations: 1.132 MB / 0.7152 GB, free: 6.777 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000379/0.2385, allocations: 346.3 kB / 0.7155 GB, free: 6.438 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008565/0.2393, allocations: 0.7304 MB / 0.7162 GB, free: 5.703 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005179/0.2445, allocations: 2.661 MB / 0.7188 GB, free: 3.031 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2445, allocations: 4 kB / 0.7188 GB, free: 3.027 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.294e-06/0.2445, allocations: 0 / 0.7188 GB, free: 3.027 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.092e-05/0.2445, allocations: 0 / 0.7188 GB, free: 3.027 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.004488/0.249, allocations: 2.349 MB / 0.7211 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2491, allocations: 9.469 kB / 0.7211 GB, free: 0.625 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006467/0.2497, allocations: 254.5 kB / 0.7214 GB, free: 384 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.2521, allocations: 1.176 MB / 0.7225 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.084e-05/0.2522, allocations: 90.28 kB / 0.7226 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.2524, allocations: 119.9 kB / 0.7227 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.2545, allocations: 1.278 MB / 0.724 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.2545, allocations: 4 kB / 0.724 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.906e-05/0.2546, allocations: 51.94 kB / 0.724 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.2546, allocations: 28 kB / 0.7241 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.2565, allocations: 1.137 MB / 0.7252 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005592/0.2621, allocations: 2.961 MB / 0.7281 GB, free: 9.367 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.2637, allocations: 0.8695 MB / 0.7289 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007106/0.2644, allocations: 419.6 kB / 0.7293 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003527/0.2679, allocations: 1.555 MB / 0.7308 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.268, allocations: 43.56 kB / 0.7309 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 2.876e-06/0.268, allocations: 0 / 0.7309 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003355/0.2713, allocations: 1.45 MB / 0.7323 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.2714, allocations: 68.34 kB / 0.7323 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.273, allocations: 1.189 MB / 0.7335 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.626e-05/0.273, allocations: 45.7 kB / 0.7335 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006629/0.2737, allocations: 0.7616 MB / 0.7343 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003167/0.274, allocations: 380.7 kB / 0.7347 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.2743, allocations: 166.6 kB / 0.7348 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2745, allocations: 341.9 kB / 0.7351 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005587/0.275, allocations: 289.9 kB / 0.7354 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007706/0.2758, allocations: 0.5094 MB / 0.7359 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.2772, allocations: 0.7762 MB / 0.7367 GB, free: 332 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2772, allocations: 0 / 0.7367 GB, free: 332 kB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002232/0.2794, allocations: 1.135 MB / 0.7378 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2794, allocations: 4 kB / 0.7378 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.2794, allocations: 4 kB / 0.7378 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005951/0.28, allocations: 158.5 kB / 0.7379 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006943/0.2807, allocations: 199.7 kB / 0.7381 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004341/0.2851, allocations: 4.401 MB / 0.7424 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007186/0.2858, allocations: 83.42 kB / 0.7425 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/0.2859, allocations: 47.92 kB / 0.7426 GB, free: 9.969 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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.0005128/0.2864, allocations: 273.6 kB / 0.7428 GB, free: 9.691 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002689/0.2867, allocations: 166.9 kB / 0.743 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.2895, allocations: 1.574 MB / 0.7445 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.2895, allocations: 8 kB / 0.7445 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2895, allocations: 4 kB / 0.7445 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.2895, allocations: 3.984 kB / 0.7445 GB, free: 7.91 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003883/0.2934, allocations: 2.198 MB / 0.7467 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2934, allocations: 0 / 0.7467 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.2939, allocations: 151.8 kB / 0.7468 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005334/0.2945, allocations: 162.6 kB / 0.747 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.715e-05/0.2945, allocations: 35.97 kB / 0.747 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004257/0.2988, allocations: 4.415 MB / 0.7513 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2988, allocations: 7.969 kB / 0.7513 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2836/0.5824, allocations: 1.555 MB / 0.7528 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005709/0.583, allocations: 253.2 kB / 0.7531 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.5831, allocations: 28.39 kB / 0.7531 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005281/0.5837, allocations: 23.91 kB / 0.7531 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.5839, allocations: 85.66 kB / 0.7532 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-05/0.584, allocations: 36.72 kB / 0.7533 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001238/0.5852, allocations: 0.8415 MB / 0.7541 GB, free: 108.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5852, allocations: 0 / 0.7541 GB, free: 108.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001334/0.5865, allocations: 0.5508 MB / 0.7546 GB, free: 108.8 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 (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.0008613/0.5874, allocations: 0.6485 MB / 0.7552 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00193/0.5893, allocations: 1.12 MB / 0.7563 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5893, allocations: 1.625 kB / 0.7563 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.5903, allocations: 0.7676 MB / 0.7571 GB, free: 108.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/0.5923, allocations: 0.4885 MB / 0.7576 GB, free: 108 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.5969, allocations: 2.815 MB / 0.7603 GB, free: 106.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006864/0.5976, allocations: 0.6725 MB / 0.761 GB, free: 106.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004123/0.598, allocations: 137.5 kB / 0.7611 GB, free: 106.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/0.598, allocations: 0 / 0.7611 GB, free: 106.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.04869/0.6467, allocations: 46.39 MB / 0.8064 GB, free: 71.3 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: 12.113286626059562]