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.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.002536/0.002536, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.00403/0.00403, allocations: 220 kB / 22.24 MB, free: 5.109 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.996/1.996, allocations: 230.6 MB / 256 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 1.31/1.31, allocations: 100.9 MB / 413.3 MB, free: 2.883 MB / 318.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [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.003077/0.003077, allocations: 89.3 kB / 0.5641 GB, free: 35.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.288, allocations: 74.62 MB / 0.6369 GB, free: 6.5 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.09086/0.3789, allocations: 59.75 MB / 0.6953 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03301/0.4119, allocations: 16.03 MB / 0.711 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005537/0.4175, allocations: 115 kB / 0.7111 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.006214/0.4237, allocations: 1.067 MB / 0.7121 GB, free: 9.27 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01532/0.439, allocations: 2.843 MB / 0.7149 GB, free: 6.41 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.008985/0.448, allocations: 1.586 MB / 0.7164 GB, free: 4.82 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01151/0.4595, allocations: 3.899 MB / 0.7202 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.4613, allocations: 383.3 kB / 0.7206 GB, free: 0.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005948/0.4672, allocations: 1.673 MB / 0.7222 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004194/0.4714, allocations: 1.434 MB / 0.7236 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0007139/0.4721, allocations: 192 kB / 0.7238 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008505/0.4806, allocations: 1.502 MB / 0.7253 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0009802/0.4816, allocations: 497.8 kB / 0.7258 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002319/0.4839, allocations: 1.03 MB / 0.7268 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0146/0.4985, allocations: 3.794 MB / 0.7305 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.513e-05/0.4986, allocations: 0 / 0.7305 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.695e-06/0.4986, allocations: 0 / 0.7305 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001177/0.4987, allocations: 0 / 0.7305 GB, free: 6.355 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: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.01076/0.5094, allocations: 2.997 MB / 0.7334 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 7.157e-05/0.5095, allocations: 17.41 kB / 0.7334 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004037/0.5099, allocations: 262.3 kB / 0.7337 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/0.5114, allocations: 343.1 kB / 0.734 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003903/0.5153, allocations: 1.378 MB / 0.7353 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.5155, allocations: 144.1 kB / 0.7355 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.5158, allocations: 192.3 kB / 0.7357 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004939/0.5207, allocations: 2.242 MB / 0.7378 GB, free: 14.64 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.849e-05/0.5208, allocations: 3.938 kB / 0.7379 GB, free: 14.64 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.521, allocations: 76 kB / 0.7379 GB, free: 14.56 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.935e-05/0.521, allocations: 44 kB / 0.738 GB, free: 14.52 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004559/0.5256, allocations: 2.302 MB / 0.7402 GB, free: 12.21 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01317/0.5388, allocations: 5.234 MB / 0.7453 GB, free: 6.887 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00379/0.5425, allocations: 1.789 MB / 0.7471 GB, free: 5.09 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/0.5443, allocations: 0.8815 MB / 0.7479 GB, free: 4.203 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007923/0.5523, allocations: 2.8 MB / 0.7507 GB, free: 1.383 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002373/0.5546, allocations: 1.121 MB / 0.7518 GB, free: 224 kB / 0.5763 GB Notification: Performance of pre-optimization done (n=200): time 5.961e-06/0.5546, allocations: 0 / 0.7518 GB, free: 224 kB / 0.5763 GB Notification: Performance of matching and sorting (n=200): time 0.7135/1.268, allocations: 2.727 MB / 0.7544 GB, free: 110.8 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/1.268, allocations: 156.6 kB / 0.7546 GB, free: 110.7 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/1.271, allocations: 1.241 MB / 0.7558 GB, free: 110.3 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0001669/1.271, allocations: 63.77 kB / 0.7558 GB, free: 110.2 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001053/1.272, allocations: 0.877 MB / 0.7567 GB, free: 109.7 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008685/1.273, allocations: 0.697 MB / 0.7574 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007164/1.274, allocations: 320.6 kB / 0.7577 GB, free: 109.1 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 7.252e-05/1.274, allocations: 302.5 kB / 0.758 GB, free: 108.8 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/1.276, allocations: 0.67 MB / 0.7586 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/1.278, allocations: 0.9909 MB / 0.7596 GB, free: 107.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003906/1.282, allocations: 1.666 MB / 0.7612 GB, free: 107.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.88e-05/1.282, allocations: 1.375 kB / 0.7612 GB, free: 107.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005985/1.288, allocations: 2.167 MB / 0.7633 GB, free: 106.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.338e-05/1.288, allocations: 35.69 kB / 0.7634 GB, free: 106.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/1.288, allocations: 4.938 kB / 0.7634 GB, free: 106.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000751/1.289, allocations: 171.5 kB / 0.7635 GB, free: 106 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/1.29, allocations: 388 kB / 0.7639 GB, free: 106 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005936/1.296, allocations: 4.492 MB / 0.7683 GB, free: 101.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/1.298, allocations: 167.2 kB / 0.7685 GB, free: 101.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003212/1.298, allocations: 84.94 kB / 0.7685 GB, free: 101.7 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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.001402/1.3, allocations: 364.1 kB / 0.7689 GB, free: 101.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000664/1.3, allocations: 206.2 kB / 0.7691 GB, free: 101.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008219/1.309, allocations: 3.109 MB / 0.7721 GB, free: 100.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.99e-05/1.309, allocations: 22.75 kB / 0.7721 GB, free: 100.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/1.309, allocations: 2.172 kB / 0.7722 GB, free: 100.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.844e-05/1.309, allocations: 16.23 kB / 0.7722 GB, free: 100.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/1.32, allocations: 4.258 MB / 0.7763 GB, free: 98.17 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/1.32, allocations: 1 kB / 0.7763 GB, free: 98.17 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00144/1.322, allocations: 375 kB / 0.7767 GB, free: 98.13 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/1.322, allocations: 167.2 kB / 0.7768 GB, free: 98.07 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/1.322, allocations: 66.34 kB / 0.7769 GB, free: 98.04 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004465/1.327, allocations: 4.501 MB / 0.7813 GB, free: 93.85 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.327, allocations: 7.844 kB / 0.7813 GB, free: 93.85 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006346/1.333, allocations: 3.226 MB / 0.7845 GB, free: 92.36 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/1.335, allocations: 446.3 kB / 0.7849 GB, free: 92.12 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/1.335, allocations: 50.7 kB / 0.7849 GB, free: 92.09 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008133/1.336, allocations: 59.42 kB / 0.785 GB, free: 92.06 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000403/1.336, allocations: 173.7 kB / 0.7852 GB, free: 92.04 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/1.336, allocations: 77.95 kB / 0.7852 GB, free: 92.02 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.001505/1.338, allocations: 0.8603 MB / 0.7861 GB, free: 91.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/1.338, allocations: 3.969 kB / 0.7861 GB, free: 91.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.002993/1.341, allocations: 0.8107 MB / 0.7869 GB, free: 91.2 MB / 0.5763 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 (213): * Single equations (assignments): 208 * 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.006637/1.347, allocations: 4.448 MB / 0.7912 GB, free: 87.11 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.00427/1.352, allocations: 2.139 MB / 0.7933 GB, free: 84.93 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.352, allocations: 0 / 0.7933 GB, free: 84.93 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.001921/1.354, allocations: 1.304 MB / 0.7946 GB, free: 83.59 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/1.357, allocations: 0.6518 MB / 0.7952 GB, free: 82.99 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02657/1.383, allocations: 14.5 MB / 0.8094 GB, free: 68.09 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/1.385, allocations: 0.8929 MB / 0.8102 GB, free: 67.16 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.002229/1.387, allocations: 484 kB / 0.8107 GB, free: 66.79 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/1.388, allocations: 0.9561 MB / 0.8116 GB, free: 65.83 MB / 0.5763 GB Notification: Performance of SimCode: time 2.494e-06/1.388, allocations: 4 kB / 0.8116 GB, free: 65.82 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1513/1.54, allocations: 61.61 MB / 0.8718 GB, free: 4.824 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.95/18.49, allocations: 19.86 kB / 0.8718 GB, free: 4.805 MB / 0.5763 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.289192031137645]