Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.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.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",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.005969/0.005969, allocations: 101.1 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.00135/0.00135, allocations: 190.4 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6576/0.6576, allocations: 91.18 MB / 381.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 80.16 kB / 0.5164 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1564, allocations: 67.69 MB / 0.5825 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5972/0.7536, allocations: 189.2 MB / 0.7673 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02274/0.7764, allocations: 17.79 MB / 0.7846 GB, free: 9.266 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002772/0.7792, allocations: 63.56 kB / 0.7847 GB, free: 9.203 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003001/0.7822, allocations: 0.9819 MB / 0.7856 GB, free: 8.215 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007687/0.79, allocations: 2.381 MB / 0.788 GB, free: 5.82 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005707/0.7957, allocations: 1.847 MB / 0.7898 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005622/0.8014, allocations: 3.554 MB / 0.7932 GB, free: 420 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009999/0.8024, allocations: 450 kB / 0.7937 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003691/0.8061, allocations: 1.56 MB / 0.7952 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003023/0.8091, allocations: 1.56 MB / 0.7967 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0007427/0.8099, allocations: 168 kB / 0.7969 GB, free: 12.65 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007203/0.8171, allocations: 2.558 MB / 0.7994 GB, free: 10.09 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.8182, allocations: 450.1 kB / 0.7998 GB, free: 9.648 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002895/0.8211, allocations: 1.08 MB / 0.8009 GB, free: 8.562 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.009014/0.8302, allocations: 3.221 MB / 0.804 GB, free: 5.332 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.8302, allocations: 4 kB / 0.804 GB, free: 5.328 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.895e-06/0.8302, allocations: 0 / 0.804 GB, free: 5.328 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.000116/0.8303, allocations: 0 / 0.804 GB, free: 5.328 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.006725/0.8371, allocations: 2.593 MB / 0.8065 GB, free: 2.676 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.8371, allocations: 19.95 kB / 0.8066 GB, free: 2.656 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004156/0.8376, allocations: 207.2 kB / 0.8068 GB, free: 2.445 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009176/0.8385, allocations: 249.2 kB / 0.807 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002768/0.8413, allocations: 1.291 MB / 0.8083 GB, free: 0.8555 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.87e-05/0.8414, allocations: 114.9 kB / 0.8084 GB, free: 0.7422 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002116/0.8416, allocations: 159.9 kB / 0.8085 GB, free: 0.5859 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002684/0.8443, allocations: 1.639 MB / 0.8101 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.8443, allocations: 0 / 0.8101 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.8445, allocations: 64 kB / 0.8102 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.8445, allocations: 36 kB / 0.8102 GB, free: 14.79 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002395/0.8469, allocations: 1.485 MB / 0.8117 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009107/0.856, allocations: 7.129 MB / 0.8186 GB, free: 5.59 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.8589, allocations: 1.567 MB / 0.8202 GB, free: 3.977 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.86, allocations: 0.7579 MB / 0.8209 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006508/0.8665, allocations: 5.947 MB / 0.8267 GB, free: 12.49 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.191e-05/0.8666, allocations: 63.73 kB / 0.8268 GB, free: 12.42 MB / 0.67 GB Notification: Performance of pre-optimization done (n=166): time 3.186e-06/0.8666, allocations: 0 / 0.8268 GB, free: 12.42 MB / 0.67 GB Notification: Performance of matching and sorting (n=166): time 0.006365/0.873, allocations: 3.149 MB / 0.8298 GB, free: 9.078 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.8731, allocations: 175.1 kB / 0.83 GB, free: 8.871 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.8747, allocations: 1.274 MB / 0.8313 GB, free: 7.59 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.8749, allocations: 57.7 kB / 0.8313 GB, free: 7.527 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005829/0.8755, allocations: 0.7724 MB / 0.8321 GB, free: 6.742 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004249/0.8759, allocations: 0.562 MB / 0.8326 GB, free: 6.172 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004105/0.8763, allocations: 295.4 kB / 0.8329 GB, free: 5.879 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.8764, allocations: 313.1 kB / 0.8332 GB, free: 5.57 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008828/0.8773, allocations: 499.8 kB / 0.8337 GB, free: 5.082 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.8785, allocations: 0.825 MB / 0.8345 GB, free: 4.125 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002131/0.8806, allocations: 1.433 MB / 0.8359 GB, free: 2.566 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.8807, allocations: 4 kB / 0.8359 GB, free: 2.562 MB / 0.67 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003444/0.8841, allocations: 1.856 MB / 0.8377 GB, free: 0.6797 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.8841, allocations: 16.88 kB / 0.8377 GB, free: 0.6641 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.8842, allocations: 8 kB / 0.8377 GB, free: 0.6562 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007585/0.8849, allocations: 232 kB / 0.8379 GB, free: 424 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.8863, allocations: 383.4 kB / 0.8383 GB, free: 40 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3273/1.214, allocations: 7.67 MB / 0.8458 GB, free: 217 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/1.215, allocations: 158.4 kB / 0.8459 GB, free: 217 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/1.216, allocations: 78 kB / 0.846 GB, free: 217 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (201): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008115/1.216, allocations: 338.2 kB / 0.8463 GB, free: 216.8 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000605/1.217, allocations: 192.9 kB / 0.8465 GB, free: 216.8 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004385/1.221, allocations: 2.06 MB / 0.8485 GB, free: 216.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/1.221, allocations: 21.44 kB / 0.8486 GB, free: 216.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/1.221, allocations: 8.031 kB / 0.8486 GB, free: 216.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.576e-05/1.221, allocations: 10.58 kB / 0.8486 GB, free: 216.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006406/1.228, allocations: 3.928 MB / 0.8524 GB, free: 214.3 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.228, allocations: 2.875 kB / 0.8524 GB, free: 214.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000978/1.229, allocations: 261.1 kB / 0.8527 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001716/1.231, allocations: 481.5 kB / 0.8531 GB, free: 214.1 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/1.231, allocations: 56.69 kB / 0.8532 GB, free: 214.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005577/1.236, allocations: 9.957 MB / 0.8629 GB, free: 204.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.236, allocations: 3.141 kB / 0.8629 GB, free: 204.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004786/1.241, allocations: 2.883 MB / 0.8657 GB, free: 202.9 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/1.242, allocations: 273.2 kB / 0.866 GB, free: 202.7 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/1.242, allocations: 38 kB / 0.866 GB, free: 202.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009933/1.243, allocations: 60.64 kB / 0.8661 GB, free: 202.6 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/1.243, allocations: 131.4 kB / 0.8662 GB, free: 202.6 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/1.243, allocations: 71.75 kB / 0.8663 GB, free: 202.6 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00126/1.245, allocations: 0.8849 MB / 0.8671 GB, free: 202.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.5e-07/1.245, allocations: 3.031 kB / 0.8671 GB, free: 202.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002627/1.247, allocations: 0.772 MB / 0.8679 GB, free: 202.1 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.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 (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006758/1.254, allocations: 4.083 MB / 0.8719 GB, free: 199.9 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003704/1.258, allocations: 1.997 MB / 0.8738 GB, free: 198.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/1.258, allocations: 1.188 kB / 0.8738 GB, free: 198.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002396/1.26, allocations: 1.445 MB / 0.8752 GB, free: 198 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/1.263, allocations: 0.6152 MB / 0.8758 GB, free: 197.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/1.286, allocations: 14.25 MB / 0.8897 GB, free: 190.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/1.287, allocations: 1.336 MB / 0.8911 GB, free: 189.6 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001658/1.289, allocations: 348.8 kB / 0.8914 GB, free: 189.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009234/1.29, allocations: 0.7641 MB / 0.8921 GB, free: 188.9 MB / 0.67 GB Notification: Performance of SimCode: time 8.32e-07/1.29, allocations: 1.188 kB / 0.8921 GB, free: 188.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09394/1.384, allocations: 54.15 MB / 0.945 GB, free: 144.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/17.16, allocations: 11.8 kB / 0.945 GB, free: 144.4 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches