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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01111/0.01111, allocations: 99.11 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 195.2 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.021/2.021, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.111/1.111, allocations: 93.72 MB / 384.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003046/0.003046, allocations: 87.88 kB / 0.52 GB, free: 6.312 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2528, allocations: 68.27 MB / 0.5866 GB, free: 1.969 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.7142/0.9671, allocations: 53.26 MB / 0.6386 GB, free: 4.062 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04708/1.014, allocations: 21.58 MB / 0.6597 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005044/1.019, allocations: 68.12 kB / 0.6598 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0047/1.024, allocations: 0.899 MB / 0.6607 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01033/1.035, allocations: 1.69 MB / 0.6623 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00796/1.043, allocations: 1.327 MB / 0.6636 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008562/1.051, allocations: 2.561 MB / 0.6661 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001857/1.053, allocations: 497.7 kB / 0.6666 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004813/1.058, allocations: 1.052 MB / 0.6676 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002851/1.061, allocations: 0.9402 MB / 0.6685 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003745/1.061, allocations: 130.3 kB / 0.6687 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007871/1.069, allocations: 1.241 MB / 0.6699 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004917/1.07, allocations: 342.4 kB / 0.6702 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001914/1.072, allocations: 0.903 MB / 0.6711 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01215/1.084, allocations: 2.681 MB / 0.6737 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.279e-05/1.084, allocations: 1.406 kB / 0.6737 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.807e-06/1.084, allocations: 0 / 0.6737 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.705e-05/1.084, allocations: 0 / 0.6737 GB, free: 9.477 MB / 0.5137 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.008992/1.093, allocations: 2.431 MB / 0.6761 GB, free: 7.477 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 7.305e-05/1.093, allocations: 8.031 kB / 0.6761 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002704/1.093, allocations: 173.2 kB / 0.6762 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008334/1.094, allocations: 226.5 kB / 0.6765 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003805/1.098, allocations: 1.298 MB / 0.6777 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002354/1.098, allocations: 94.22 kB / 0.6778 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/1.099, allocations: 116 kB / 0.6779 GB, free: 5.512 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002758/1.101, allocations: 1.206 MB / 0.6791 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/1.101, allocations: 3.938 kB / 0.6791 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/1.101, allocations: 51.98 kB / 0.6792 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.545e-05/1.102, allocations: 28 kB / 0.6792 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002608/1.104, allocations: 1.137 MB / 0.6803 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/1.115, allocations: 5.013 MB / 0.6852 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/1.117, allocations: 0.8983 MB / 0.6861 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009738/1.118, allocations: 482.3 kB / 0.6865 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008/1.126, allocations: 5.15 MB / 0.6916 GB, free: 6.18 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.063e-05/1.126, allocations: 51.5 kB / 0.6916 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=103): time 3.837e-06/1.126, allocations: 0 / 0.6916 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of matching and sorting (n=103): time 0.004611/1.131, allocations: 1.727 MB / 0.6933 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/1.131, allocations: 64.41 kB / 0.6933 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/1.133, allocations: 1.28 MB / 0.6946 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000305/1.134, allocations: 53.7 kB / 0.6946 GB, free: 2.91 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008905/1.135, allocations: 0.7622 MB / 0.6954 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/1.135, allocations: 372.8 kB / 0.6957 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003666/1.135, allocations: 174.6 kB / 0.6959 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002472/1.136, allocations: 341.9 kB / 0.6962 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008249/1.136, allocations: 301.9 kB / 0.6965 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000845/1.137, allocations: 433.9 kB / 0.6969 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/1.139, allocations: 0.7777 MB / 0.6977 GB, free: 15.68 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/1.139, allocations: 0 / 0.6977 GB, free: 15.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002932/1.142, allocations: 1.155 MB / 0.6988 GB, free: 14.51 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/1.142, allocations: 4 kB / 0.6988 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/1.142, allocations: 4 kB / 0.6988 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008439/1.143, allocations: 163.5 kB / 0.699 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009304/1.144, allocations: 191.8 kB / 0.6992 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006294/1.15, allocations: 4.825 MB / 0.7039 GB, free: 8.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/1.152, allocations: 87.34 kB / 0.704 GB, free: 8.824 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/1.152, allocations: 39.98 kB / 0.704 GB, free: 8.785 MB / 0.545 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.0008669/1.153, allocations: 282.3 kB / 0.7043 GB, free: 8.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007526/1.153, allocations: 170.9 kB / 0.7044 GB, free: 8.332 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004035/1.157, allocations: 1.644 MB / 0.706 GB, free: 6.664 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/1.158, allocations: 8 kB / 0.7061 GB, free: 6.656 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/1.158, allocations: 4 kB / 0.7061 GB, free: 6.652 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/1.158, allocations: 11.86 kB / 0.7061 GB, free: 6.641 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007039/1.165, allocations: 2.625 MB / 0.7086 GB, free: 3.926 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.083e-05/1.165, allocations: 4 kB / 0.7086 GB, free: 3.922 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007369/1.165, allocations: 171.7 kB / 0.7088 GB, free: 3.754 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008809/1.166, allocations: 166.5 kB / 0.709 GB, free: 3.582 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000253/1.167, allocations: 39.92 kB / 0.709 GB, free: 3.543 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006909/1.174, allocations: 4.826 MB / 0.7137 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.174, allocations: 7.969 kB / 0.7137 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004108/1.178, allocations: 1.627 MB / 0.7153 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.179, allocations: 351.6 kB / 0.7156 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000466/1.18, allocations: 27.94 kB / 0.7157 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.181, allocations: 27.92 kB / 0.7157 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/1.181, allocations: 88.97 kB / 0.7158 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.181, allocations: 35.98 kB / 0.7158 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0019/1.183, allocations: 0.9093 MB / 0.7167 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.183, allocations: 0 / 0.7167 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002921/1.186, allocations: 0.6 MB / 0.7173 GB, free: 10.57 MB / 0.5606 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.006104/1.192, allocations: 2.804 MB / 0.72 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003179/1.195, allocations: 1.192 MB / 0.7212 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.195, allocations: 8 kB / 0.7212 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001745/1.197, allocations: 0.8304 MB / 0.722 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/1.201, allocations: 0.5199 MB / 0.7225 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02325/1.224, allocations: 10.72 MB / 0.733 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001406/1.225, allocations: 1.265 MB / 0.7342 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001632/1.227, allocations: 305.5 kB / 0.7345 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/1.228, allocations: 0.7023 MB / 0.7352 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of SimCode: time 2.776e-06/1.228, allocations: 0 / 0.7352 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6369/1.865, allocations: 45.5 MB / 0.7796 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.47/21.34, allocations: 7.922 kB / 0.7796 GB, free: 10.61 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) 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) Reference file matches