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.007301/0.007301, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.001603/0.001603, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8041/0.8041, allocations: 91.19 MB / 381.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 79.86 kB / 0.5168 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.38, 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.6302/1.01, allocations: 189.2 MB / 0.7677 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02199/1.032, allocations: 17.8 MB / 0.7851 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00342/1.036, allocations: 63.59 kB / 0.7852 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003562/1.039, allocations: 0.9882 MB / 0.7861 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008495/1.048, allocations: 2.374 MB / 0.7884 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007575/1.056, allocations: 1.85 MB / 0.7902 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00807/1.064, allocations: 3.56 MB / 0.7937 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00123/1.065, allocations: 450.7 kB / 0.7942 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004182/1.069, allocations: 1.555 MB / 0.7957 GB, free: 484 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003306/1.072, allocations: 1.557 MB / 0.7972 GB, free: 212 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0009284/1.073, allocations: 168.7 kB / 0.7974 GB, free: 212 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007591/1.081, allocations: 2.564 MB / 0.7999 GB, free: 164 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001017/1.082, allocations: 452.5 kB / 0.8003 GB, free: 80 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002987/1.085, allocations: 1.078 MB / 0.8013 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.009752/1.095, allocations: 3.219 MB / 0.8045 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.48e-05/1.095, allocations: 1.125 kB / 0.8045 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.923e-06/1.095, allocations: 3.938 kB / 0.8045 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001547/1.095, allocations: 0 / 0.8045 GB, free: 15.25 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.009288/1.104, allocations: 2.605 MB / 0.807 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/1.104, allocations: 9.062 kB / 0.807 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/1.106, allocations: 251.1 kB / 0.8073 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003934/1.11, allocations: 1.292 MB / 0.8085 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/1.11, allocations: 111.5 kB / 0.8087 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004932/1.11, allocations: 155.7 kB / 0.8088 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003283/1.114, allocations: 1.631 MB / 0.8104 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.769e-05/1.114, allocations: 6.125 kB / 0.8104 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/1.114, allocations: 64.66 kB / 0.8105 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.275e-05/1.114, allocations: 35.22 kB / 0.8105 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/1.117, allocations: 1.481 MB / 0.8119 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0134/1.13, allocations: 7.139 MB / 0.8189 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/1.134, allocations: 1.557 MB / 0.8204 GB, free: 5.406 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/1.135, allocations: 0.769 MB / 0.8212 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007736/1.143, allocations: 5.942 MB / 0.827 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.062e-05/1.143, allocations: 64.06 kB / 0.827 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=166): time 4.058e-06/1.143, allocations: 0 / 0.827 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=166): time 0.007359/1.151, allocations: 3.141 MB / 0.8301 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/1.151, allocations: 177.7 kB / 0.8303 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/1.153, allocations: 1.278 MB / 0.8315 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001724/1.153, allocations: 57.7 kB / 0.8316 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007319/1.154, allocations: 0.7764 MB / 0.8323 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005598/1.155, allocations: 0.5659 MB / 0.8329 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005157/1.155, allocations: 291.4 kB / 0.8332 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001141/1.155, allocations: 301.1 kB / 0.8335 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/1.156, allocations: 499.8 kB / 0.8339 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/1.158, allocations: 0.8339 MB / 0.8348 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/1.16, allocations: 1.437 MB / 0.8362 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/1.16, allocations: 4 kB / 0.8362 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004176/1.165, allocations: 1.847 MB / 0.838 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/1.165, allocations: 17.03 kB / 0.838 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/1.165, allocations: 8 kB / 0.838 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009466/1.166, allocations: 227 kB / 0.8382 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/1.167, allocations: 380.2 kB / 0.8386 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006601/1.174, allocations: 7.671 MB / 0.8461 GB, free: 9.676 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/1.175, allocations: 166.2 kB / 0.8462 GB, free: 9.512 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003258/1.176, allocations: 87.97 kB / 0.8463 GB, free: 9.426 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.001116/1.177, allocations: 332.6 kB / 0.8466 GB, free: 9.113 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009151/1.178, allocations: 185.8 kB / 0.8468 GB, free: 8.93 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00542/1.183, allocations: 2.064 MB / 0.8488 GB, free: 6.828 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/1.183, allocations: 20 kB / 0.8488 GB, free: 6.809 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.539e-05/1.183, allocations: 4 kB / 0.8488 GB, free: 6.805 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-05/1.183, allocations: 7.969 kB / 0.8488 GB, free: 6.797 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008387/1.192, allocations: 3.948 MB / 0.8527 GB, free: 2.812 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/1.192, allocations: 0 / 0.8527 GB, free: 2.812 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/1.193, allocations: 259.1 kB / 0.8529 GB, free: 2.574 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/1.195, allocations: 482.2 kB / 0.8534 GB, free: 2.078 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/1.195, allocations: 51.97 kB / 0.8535 GB, free: 2.027 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008199/1.203, allocations: 9.955 MB / 0.8632 GB, free: 7.305 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.758e-06/1.203, allocations: 10.38 kB / 0.8632 GB, free: 7.297 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005617/1.209, allocations: 2.884 MB / 0.866 GB, free: 4.367 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008332/1.21, allocations: 274.4 kB / 0.8663 GB, free: 4.078 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004816/1.21, allocations: 47.92 kB / 0.8663 GB, free: 4.031 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/1.212, allocations: 59.91 kB / 0.8664 GB, free: 3.973 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/1.212, allocations: 123.2 kB / 0.8665 GB, free: 3.855 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/1.212, allocations: 79.95 kB / 0.8666 GB, free: 3.777 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.00161/1.214, allocations: 0.8848 MB / 0.8674 GB, free: 2.898 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.11e-07/1.214, allocations: 2.531 kB / 0.8674 GB, free: 2.898 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.003098/1.217, allocations: 0.7686 MB / 0.8682 GB, free: 2.129 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.001806/1.219, allocations: 0.7554 MB / 0.8689 GB, free: 1.418 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00384/1.222, allocations: 1.992 MB / 0.8709 GB, free: 15.41 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.222, allocations: 0 / 0.8709 GB, free: 15.41 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.002624/1.225, allocations: 1.44 MB / 0.8723 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/1.229, allocations: 0.6147 MB / 0.8729 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007664/1.236, allocations: 3.781 MB / 0.8766 GB, free: 9.52 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/1.237, allocations: 1.336 MB / 0.8779 GB, free: 8.152 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001556/1.239, allocations: 354.1 kB / 0.8782 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/1.24, allocations: 167.4 kB / 0.8784 GB, free: 7.641 MB / 0.6544 GB Notification: Performance of SimCode: time 1.052e-06/1.24, allocations: 0 / 0.8784 GB, free: 7.641 MB / 0.6544 GB Notification: Performance of Templates: time 0.06682/1.306, allocations: 36.9 MB / 0.9144 GB, free: 3.121 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