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.007804/0.007804, allocations: 101.4 kB / 15.73 MB, free: 6.043 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.001641/0.001641, allocations: 199.3 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 1.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7771/0.7771, allocations: 91.19 MB / 381.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001653, allocations: 75.88 kB / 0.5164 GB, free: 4.625 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4026, allocations: 67.68 MB / 0.5825 GB, free: 13.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5802/0.9829, allocations: 189.2 MB / 0.7672 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02051/1.003, allocations: 17.79 MB / 0.7846 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002955/1.006, allocations: 62.38 kB / 0.7847 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003098/1.01, allocations: 0.9862 MB / 0.7856 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006989/1.017, allocations: 2.337 MB / 0.7879 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005014/1.022, allocations: 1.832 MB / 0.7897 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005529/1.027, allocations: 3.554 MB / 0.7932 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/1.028, allocations: 454.3 kB / 0.7936 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/1.032, allocations: 1.556 MB / 0.7951 GB, free: 0.4922 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003773/1.036, allocations: 1.554 MB / 0.7967 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001319/1.037, allocations: 169 kB / 0.7968 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01024/1.048, allocations: 2.555 MB / 0.7993 GB, free: 192 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001181/1.049, allocations: 457.2 kB / 0.7997 GB, free: 108 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00338/1.052, allocations: 1.076 MB / 0.8008 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008966/1.061, allocations: 3.235 MB / 0.804 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/1.061, allocations: 0.6875 kB / 0.804 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.934e-06/1.061, allocations: 0 / 0.804 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001237/1.062, allocations: 0.8125 kB / 0.804 GB, free: 15.27 MB / 0.5919 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.007096/1.069, allocations: 2.599 MB / 0.8065 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/1.069, allocations: 9.938 kB / 0.8065 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004993/1.069, allocations: 211 kB / 0.8067 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009729/1.07, allocations: 250.5 kB / 0.8069 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/1.073, allocations: 1.288 MB / 0.8082 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/1.073, allocations: 110.6 kB / 0.8083 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/1.073, allocations: 159.6 kB / 0.8085 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003333/1.077, allocations: 1.636 MB / 0.8101 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/1.077, allocations: 1 kB / 0.8101 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001813/1.077, allocations: 63.59 kB / 0.8101 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/1.077, allocations: 35.31 kB / 0.8102 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002855/1.08, allocations: 1.483 MB / 0.8116 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/1.091, allocations: 7.139 MB / 0.8186 GB, free: 6.191 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002944/1.094, allocations: 1.556 MB / 0.8201 GB, free: 5.324 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/1.095, allocations: 0.7685 MB / 0.8208 GB, free: 4.766 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007068/1.103, allocations: 5.939 MB / 0.8266 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.481e-05/1.103, allocations: 63.42 kB / 0.8267 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=166): time 4.288e-06/1.103, allocations: 1.094 kB / 0.8267 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of matching and sorting (n=166): time 0.007478/1.11, allocations: 3.151 MB / 0.8298 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/1.11, allocations: 175.1 kB / 0.8299 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/1.112, allocations: 1.27 MB / 0.8312 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001745/1.113, allocations: 61.7 kB / 0.8312 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005825/1.113, allocations: 0.7707 MB / 0.832 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005422/1.114, allocations: 0.5678 MB / 0.8326 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/1.114, allocations: 291.4 kB / 0.8328 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.48e-05/1.114, allocations: 301.1 kB / 0.8331 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/1.115, allocations: 0.4959 MB / 0.8336 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/1.117, allocations: 0.8339 MB / 0.8344 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002534/1.119, allocations: 1.43 MB / 0.8358 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/1.119, allocations: 4 kB / 0.8358 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003937/1.123, allocations: 1.854 MB / 0.8376 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/1.123, allocations: 8 kB / 0.8376 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/1.123, allocations: 8 kB / 0.8376 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008296/1.124, allocations: 227.3 kB / 0.8379 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/1.126, allocations: 386.8 kB / 0.8382 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005852/1.132, allocations: 7.681 MB / 0.8457 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/1.133, allocations: 154.3 kB / 0.8459 GB, free: 9.355 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/1.133, allocations: 79.97 kB / 0.846 GB, free: 9.277 MB / 0.6231 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.000759/1.134, allocations: 336.5 kB / 0.8463 GB, free: 8.961 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005887/1.135, allocations: 185.8 kB / 0.8465 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/1.139, allocations: 2.071 MB / 0.8485 GB, free: 6.676 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/1.139, allocations: 16 kB / 0.8485 GB, free: 6.66 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/1.139, allocations: 4 kB / 0.8485 GB, free: 6.656 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.299e-05/1.139, allocations: 11.97 kB / 0.8485 GB, free: 6.645 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006684/1.146, allocations: 3.943 MB / 0.8524 GB, free: 2.664 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/1.146, allocations: 4 kB / 0.8524 GB, free: 2.66 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/1.147, allocations: 255.5 kB / 0.8526 GB, free: 2.426 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001802/1.148, allocations: 485.7 kB / 0.8531 GB, free: 1.926 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/1.149, allocations: 51.97 kB / 0.8531 GB, free: 1.875 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006832/1.155, allocations: 9.951 MB / 0.8628 GB, free: 7.164 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/1.155, allocations: 10.59 kB / 0.8628 GB, free: 7.156 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/1.16, allocations: 2.887 MB / 0.8657 GB, free: 4.219 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005457/1.161, allocations: 282.3 kB / 0.8659 GB, free: 3.922 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003315/1.161, allocations: 47.86 kB / 0.866 GB, free: 3.875 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/1.162, allocations: 55.97 kB / 0.866 GB, free: 3.82 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/1.163, allocations: 133.8 kB / 0.8662 GB, free: 3.695 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/1.163, allocations: 71.95 kB / 0.8662 GB, free: 3.625 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001266/1.164, allocations: 0.8848 MB / 0.8671 GB, free: 2.746 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.9e-07/1.164, allocations: 0 / 0.8671 GB, free: 2.746 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00243/1.167, allocations: 0.7763 MB / 0.8679 GB, free: 1.969 MB / 0.6387 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.006845/1.173, allocations: 4.082 MB / 0.8718 GB, free: 13.88 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003586/1.177, allocations: 1.983 MB / 0.8738 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.177, allocations: 64 / 0.8738 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.002442/1.18, allocations: 1.445 MB / 0.8752 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/1.183, allocations: 0.6115 MB / 0.8758 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/1.207, allocations: 14.24 MB / 0.8897 GB, free: 11.12 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/1.208, allocations: 1.332 MB / 0.891 GB, free: 9.766 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001457/1.21, allocations: 354.1 kB / 0.8913 GB, free: 9.414 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009982/1.211, allocations: 0.7673 MB / 0.8921 GB, free: 8.648 MB / 0.67 GB Notification: Performance of SimCode: time 8.02e-07/1.211, allocations: 3.938 kB / 0.8921 GB, free: 8.645 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/1.321, allocations: 54.98 MB / 0.9458 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/17.19, allocations: 14.58 kB / 0.9458 GB, free: 2.07 MB / 0.7169 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