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: translateModel(ThermofluidStream.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV") translateModel(ThermofluidStream.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008586/0.008585, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001735/0.001735, allocations: 195.7 kB / 16.68 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.792/0.792, allocations: 91.18 MB / 381.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 79.88 kB / 0.5168 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4128, allocations: 67.68 MB / 0.5829 GB, free: 13.97 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5721/0.9849, allocations: 189.2 MB / 0.7677 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01853/1.004, allocations: 17.79 MB / 0.7851 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002829/1.006, allocations: 63.53 kB / 0.7852 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002806/1.009, allocations: 0.9917 MB / 0.7861 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006755/1.016, allocations: 2.377 MB / 0.7884 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004798/1.021, allocations: 1.848 MB / 0.7903 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004879/1.026, allocations: 3.55 MB / 0.7937 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007947/1.027, allocations: 455.1 kB / 0.7942 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003434/1.03, allocations: 1.559 MB / 0.7957 GB, free: 456 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002666/1.033, allocations: 1.551 MB / 0.7972 GB, free: 188 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003886/1.033, allocations: 168.9 kB / 0.7974 GB, free: 188 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005982/1.039, allocations: 2.561 MB / 0.7999 GB, free: 140 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006053/1.04, allocations: 456.6 kB / 0.8003 GB, free: 56 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00219/1.042, allocations: 1.08 MB / 0.8013 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006845/1.049, allocations: 3.221 MB / 0.8045 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.049, allocations: 4.812 kB / 0.8045 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.613e-06/1.049, allocations: 1.031 kB / 0.8045 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.966e-05/1.049, allocations: 0 / 0.8045 GB, free: 15.23 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.00497/1.054, allocations: 2.599 MB / 0.807 GB, free: 14 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/1.054, allocations: 12.75 kB / 0.807 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007513/1.055, allocations: 249.3 kB / 0.8073 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/1.057, allocations: 1.289 MB / 0.8085 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.091e-05/1.057, allocations: 110.9 kB / 0.8086 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/1.057, allocations: 157.5 kB / 0.8088 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/1.06, allocations: 1.643 MB / 0.8104 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/1.06, allocations: 6.469 kB / 0.8104 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/1.06, allocations: 61.03 kB / 0.8105 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/1.06, allocations: 37.28 kB / 0.8105 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002656/1.063, allocations: 1.48 MB / 0.8119 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/1.073, allocations: 7.137 MB / 0.8189 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/1.076, allocations: 1.561 MB / 0.8204 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/1.078, allocations: 0.7524 MB / 0.8212 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008469/1.086, allocations: 5.948 MB / 0.827 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.626e-05/1.086, allocations: 59.75 kB / 0.827 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=166): time 3.567e-06/1.086, allocations: 1 kB / 0.827 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=166): time 0.007027/1.093, allocations: 3.14 MB / 0.8301 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/1.093, allocations: 189.7 kB / 0.8303 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/1.095, allocations: 1.27 MB / 0.8315 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001407/1.096, allocations: 57.7 kB / 0.8316 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006068/1.096, allocations: 0.7716 MB / 0.8323 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004655/1.097, allocations: 0.571 MB / 0.8329 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004403/1.097, allocations: 295.4 kB / 0.8332 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.777e-05/1.097, allocations: 301.1 kB / 0.8335 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/1.098, allocations: 499.8 kB / 0.8339 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/1.1, allocations: 0.834 MB / 0.8348 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002394/1.102, allocations: 1.43 MB / 0.8362 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/1.102, allocations: 4 kB / 0.8362 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003887/1.106, allocations: 1.851 MB / 0.838 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/1.106, allocations: 15.94 kB / 0.838 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/1.106, allocations: 8 kB / 0.838 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008703/1.107, allocations: 223.2 kB / 0.8382 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/1.108, allocations: 378.8 kB / 0.8386 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006402/1.115, allocations: 7.673 MB / 0.8461 GB, free: 9.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/1.116, allocations: 176.8 kB / 0.8462 GB, free: 9.488 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002868/1.117, allocations: 79.92 kB / 0.8463 GB, free: 9.41 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.0009221/1.118, allocations: 343 kB / 0.8466 GB, free: 9.09 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000728/1.118, allocations: 181.8 kB / 0.8468 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00464/1.123, allocations: 2.065 MB / 0.8488 GB, free: 6.805 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/1.123, allocations: 16 kB / 0.8488 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/1.123, allocations: 4 kB / 0.8488 GB, free: 6.785 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/1.123, allocations: 11.97 kB / 0.8488 GB, free: 6.773 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007845/1.131, allocations: 3.936 MB / 0.8527 GB, free: 2.793 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.131, allocations: 7.984 kB / 0.8527 GB, free: 2.785 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.132, allocations: 255 kB / 0.8529 GB, free: 2.551 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/1.134, allocations: 474.2 kB / 0.8534 GB, free: 2.062 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001782/1.134, allocations: 55.97 kB / 0.8534 GB, free: 2.008 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008028/1.142, allocations: 9.959 MB / 0.8632 GB, free: 7.289 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/1.142, allocations: 14.45 kB / 0.8632 GB, free: 7.277 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005654/1.148, allocations: 2.88 MB / 0.866 GB, free: 4.352 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006735/1.149, allocations: 278.3 kB / 0.8663 GB, free: 4.059 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004205/1.149, allocations: 39.94 kB / 0.8663 GB, free: 4.02 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/1.15, allocations: 63.89 kB / 0.8664 GB, free: 3.957 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/1.151, allocations: 133.9 kB / 0.8665 GB, free: 3.832 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001894/1.151, allocations: 67.95 kB / 0.8666 GB, free: 3.766 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001545/1.152, allocations: 0.8848 MB / 0.8674 GB, free: 2.887 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.11e-07/1.152, allocations: 0 / 0.8674 GB, free: 2.887 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002749/1.155, allocations: 0.7725 MB / 0.8682 GB, free: 2.113 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.001708/1.157, allocations: 0.7575 MB / 0.8689 GB, free: 1.402 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003968/1.161, allocations: 1.997 MB / 0.8709 GB, free: 15.39 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.161, allocations: 4 kB / 0.8709 GB, free: 15.39 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.002807/1.164, allocations: 1.433 MB / 0.8723 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003404/1.167, allocations: 0.6105 MB / 0.8729 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007425/1.175, allocations: 3.79 MB / 0.8766 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/1.176, allocations: 1.332 MB / 0.8779 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001589/1.177, allocations: 354.1 kB / 0.8782 GB, free: 7.781 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005244/1.178, allocations: 163.4 kB / 0.8784 GB, free: 7.625 MB / 0.6544 GB Notification: Performance of SimCode: time 1.032e-06/1.178, allocations: 0 / 0.8784 GB, free: 7.625 MB / 0.6544 GB Notification: Performance of Templates: time 0.06204/1.24, allocations: 36.91 MB / 0.9144 GB, free: 3.094 MB / 0.6856 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.makefile (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 & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches