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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01347/0.01347, allocations: 99.52 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.003356/0.003356, allocations: 201.1 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.356/2.356, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.272/1.272, allocations: 93.71 MB / 384.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003171/0.003171, allocations: 75.88 kB / 0.5199 GB, free: 6.332 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2946, allocations: 68.28 MB / 0.5866 GB, free: 1.977 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.8598/1.154, allocations: 65.08 MB / 0.6502 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.04651/1.201, allocations: 17.63 MB / 0.6674 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007831/1.209, allocations: 80.78 kB / 0.6675 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00772/1.217, allocations: 1.184 MB / 0.6686 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.02134/1.238, allocations: 2.812 MB / 0.6714 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.012/1.25, allocations: 1.548 MB / 0.6729 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01611/1.267, allocations: 3.886 MB / 0.6767 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00313/1.27, allocations: 0.6272 MB / 0.6773 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008501/1.278, allocations: 1.597 MB / 0.6789 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006736/1.285, allocations: 1.524 MB / 0.6803 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001639/1.287, allocations: 196 kB / 0.6805 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01264/1.299, allocations: 1.678 MB / 0.6822 GB, free: 1.121 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001747/1.301, allocations: 493.9 kB / 0.6826 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.006422/1.308, allocations: 1.255 MB / 0.6839 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.02026/1.328, allocations: 3.841 MB / 0.6876 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.151e-05/1.328, allocations: 0 / 0.6876 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.078e-06/1.328, allocations: 0 / 0.6876 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0002346/1.328, allocations: 4 kB / 0.6876 GB, free: 11.52 MB / 0.5294 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.0113/1.34, allocations: 3.073 MB / 0.6906 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 9.033e-05/1.34, allocations: 8.031 kB / 0.6906 GB, free: 8.367 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004602/1.34, allocations: 262.3 kB / 0.6909 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/1.341, allocations: 295.1 kB / 0.6912 GB, free: 7.812 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004488/1.346, allocations: 1.501 MB / 0.6926 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/1.346, allocations: 144.1 kB / 0.6928 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003131/1.346, allocations: 192.3 kB / 0.6929 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005918/1.352, allocations: 2.159 MB / 0.6951 GB, free: 3.742 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.507e-05/1.352, allocations: 7.938 kB / 0.6951 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/1.353, allocations: 76 kB / 0.6951 GB, free: 3.66 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.289e-05/1.353, allocations: 44 kB / 0.6952 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005724/1.358, allocations: 2.263 MB / 0.6974 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01926/1.378, allocations: 8.986 MB / 0.7062 GB, free: 7.492 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004801/1.383, allocations: 1.903 MB / 0.708 GB, free: 5.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002662/1.385, allocations: 0.9828 MB / 0.709 GB, free: 4.602 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01761/1.403, allocations: 6.785 MB / 0.7156 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003361/1.406, allocations: 0.96 MB / 0.7165 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=200): time 2.71e-05/1.406, allocations: 3.984 kB / 0.7165 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=200): time 0.01092/1.417, allocations: 3.014 MB / 0.7195 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001945/1.418, allocations: 73.41 kB / 0.7196 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003797/1.422, allocations: 1.225 MB / 0.7208 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004429/1.422, allocations: 65.69 kB / 0.7208 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001556/1.424, allocations: 0.884 MB / 0.7217 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001394/1.425, allocations: 0.697 MB / 0.7224 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/1.426, allocations: 331.5 kB / 0.7227 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002724/1.426, allocations: 305.1 kB / 0.723 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/1.429, allocations: 0.652 MB / 0.7236 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/1.431, allocations: 0.8833 MB / 0.7245 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004202/1.436, allocations: 1.677 MB / 0.7261 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.749e-05/1.436, allocations: 0 / 0.7261 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007207/1.443, allocations: 2.16 MB / 0.7282 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001969/1.443, allocations: 37.7 kB / 0.7283 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.967e-05/1.443, allocations: 4 kB / 0.7283 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009319/1.444, allocations: 162.5 kB / 0.7284 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/1.446, allocations: 395.5 kB / 0.7288 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007802/1.454, allocations: 4.837 MB / 0.7335 GB, free: 9.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/1.457, allocations: 166.7 kB / 0.7337 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000631/1.457, allocations: 83.97 kB / 0.7337 GB, free: 9.594 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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.001678/1.459, allocations: 365.4 kB / 0.7341 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001468/1.46, allocations: 210.6 kB / 0.7343 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/1.471, allocations: 3.417 MB / 0.7376 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.923e-05/1.471, allocations: 24 kB / 0.7377 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.849e-05/1.472, allocations: 7.938 kB / 0.7377 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.647e-05/1.472, allocations: 15.89 kB / 0.7377 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/1.487, allocations: 4.772 MB / 0.7423 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/1.487, allocations: 0 / 0.7423 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001905/1.489, allocations: 411.4 kB / 0.7427 GB, free: 368 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007316/1.49, allocations: 162.6 kB / 0.7429 GB, free: 196 kB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000479/1.49, allocations: 75.95 kB / 0.743 GB, free: 120 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00805/1.499, allocations: 4.833 MB / 0.7477 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.499, allocations: 4.031 kB / 0.7477 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/1.51, allocations: 3.332 MB / 0.7509 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/1.512, allocations: 0.5378 MB / 0.7515 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006576/1.513, allocations: 48 kB / 0.7515 GB, free: 6.875 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/1.515, allocations: 55.97 kB / 0.7516 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000582/1.516, allocations: 173.8 kB / 0.7517 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/1.516, allocations: 83.95 kB / 0.7518 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002445/1.519, allocations: 0.8627 MB / 0.7527 GB, free: 5.715 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/1.519, allocations: 0 / 0.7527 GB, free: 5.715 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004798/1.523, allocations: 0.873 MB / 0.7535 GB, free: 4.84 MB / 0.5919 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 (225): * Single equations (assignments): 220 * 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.01115/1.535, allocations: 4.644 MB / 0.758 GB, free: 160 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.006526/1.541, allocations: 2.254 MB / 0.7602 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.247e-05/1.541, allocations: 4 kB / 0.7602 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002957/1.544, allocations: 1.45 MB / 0.7617 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004752/1.549, allocations: 0.6458 MB / 0.7623 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03869/1.588, allocations: 14.59 MB / 0.7765 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002537/1.59, allocations: 1.471 MB / 0.778 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00333/1.594, allocations: 0.5042 MB / 0.7785 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002091/1.596, allocations: 0.9913 MB / 0.7794 GB, free: 9.828 MB / 0.6231 GB Notification: Performance of SimCode: time 1.924e-06/1.596, allocations: 0 / 0.7794 GB, free: 9.828 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2187/1.815, allocations: 60.4 MB / 0.8384 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.15/23.97, allocations: 7.922 kB / 0.8384 GB, free: 13.72 MB / 0.6856 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) 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) Reference file matches