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.001599/0.001599, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002497/0.002497, allocations: 193 kB / 16.14 MB, free: 6.719 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.489/1.489, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7089/0.7089, allocations: 91.21 MB / 381.2 MB, free: 9.617 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 80.86 kB / 459.6 MB, free: 23.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1307, allocations: 67.7 MB / 0.515 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.4488/0.5796, allocations: 188.2 MB / 0.6988 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02193/0.6016, allocations: 18.11 MB / 0.7164 GB, free: 1.84 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003547/0.6052, allocations: 83.38 kB / 0.7165 GB, free: 1.758 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.6084, allocations: 0.8588 MB / 0.7174 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.007168/0.6156, allocations: 2.18 MB / 0.7195 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005484/0.6211, allocations: 1.627 MB / 0.7211 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005882/0.627, allocations: 4.474 MB / 0.7254 GB, free: 8.598 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.6281, allocations: 426.7 kB / 0.7258 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003228/0.6313, allocations: 1.396 MB / 0.7272 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002651/0.634, allocations: 1.545 MB / 0.7287 GB, free: 5.203 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0007921/0.6348, allocations: 100 kB / 0.7288 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00635/0.6412, allocations: 2.546 MB / 0.7313 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0009334/0.6421, allocations: 386.1 kB / 0.7317 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002281/0.6444, allocations: 1.018 MB / 0.7327 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006856/0.6513, allocations: 3.045 MB / 0.7356 GB, free: 14.09 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.6514, allocations: 0 / 0.7356 GB, free: 14.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6514, allocations: 0 / 0.7356 GB, free: 14.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001076/0.6515, allocations: 0 / 0.7356 GB, free: 14.09 MB / 0.545 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.006078/0.6576, allocations: 2.6 MB / 0.7382 GB, free: 11.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.6576, allocations: 12.03 kB / 0.7382 GB, free: 11.42 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000908/0.6586, allocations: 249.2 kB / 0.7384 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/0.6608, allocations: 1.189 MB / 0.7396 GB, free: 9.938 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.6609, allocations: 110.9 kB / 0.7397 GB, free: 9.828 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002984/0.6613, allocations: 163.8 kB / 0.7398 GB, free: 9.668 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.6646, allocations: 1.631 MB / 0.7414 GB, free: 7.977 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.878e-05/0.6647, allocations: 3.938 kB / 0.7414 GB, free: 7.973 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000192/0.6649, allocations: 64 kB / 0.7415 GB, free: 7.91 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-05/0.6649, allocations: 36 kB / 0.7415 GB, free: 7.875 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002803/0.6677, allocations: 1.488 MB / 0.743 GB, free: 6.391 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01065/0.6784, allocations: 7.148 MB / 0.75 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/0.6816, allocations: 1.545 MB / 0.7515 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.683, allocations: 0.7528 MB / 0.7522 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007798/0.6908, allocations: 5.947 MB / 0.758 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.936e-05/0.6909, allocations: 55.75 kB / 0.7581 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=166): time 4.989e-06/0.6909, allocations: 0 / 0.7581 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=166): time 0.007561/0.6985, allocations: 3.15 MB / 0.7612 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.6986, allocations: 179 kB / 0.7613 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002259/0.7009, allocations: 1.277 MB / 0.7626 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002964/0.7012, allocations: 61.7 kB / 0.7626 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006661/0.7019, allocations: 0.7724 MB / 0.7634 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006437/0.7026, allocations: 0.562 MB / 0.7639 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005421/0.7031, allocations: 295.5 kB / 0.7642 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.896e-05/0.7032, allocations: 309.1 kB / 0.7645 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.7043, allocations: 495.8 kB / 0.765 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.7056, allocations: 0.8289 MB / 0.7658 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/0.7081, allocations: 1.434 MB / 0.7672 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.7081, allocations: 4 kB / 0.7672 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003888/0.712, allocations: 1.849 MB / 0.769 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.712, allocations: 11.94 kB / 0.769 GB, free: 9.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.852e-05/0.7121, allocations: 19.97 kB / 0.769 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008561/0.7129, allocations: 228.4 kB / 0.7693 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.7145, allocations: 375.4 kB / 0.7696 GB, free: 9.133 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0058/0.7203, allocations: 7.144 MB / 0.7766 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/0.722, allocations: 186.3 kB / 0.7768 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003729/0.7224, allocations: 72.22 kB / 0.7768 GB, free: 1.074 MB / 0.5762 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.001114/0.7236, allocations: 344.3 kB / 0.7772 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007439/0.7243, allocations: 189.7 kB / 0.7773 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00476/0.7291, allocations: 2.066 MB / 0.7794 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/0.7292, allocations: 20 kB / 0.7794 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.95e-05/0.7292, allocations: 4 kB / 0.7794 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.753e-05/0.7292, allocations: 11.97 kB / 0.7794 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007959/0.7372, allocations: 3.937 MB / 0.7832 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.7372, allocations: 4 kB / 0.7832 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.7384, allocations: 259.6 kB / 0.7835 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/0.7404, allocations: 475.4 kB / 0.7839 GB, free: 9.578 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/0.7407, allocations: 51.97 kB / 0.784 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007264/0.748, allocations: 9.419 MB / 0.7932 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.748, allocations: 7.938 kB / 0.7932 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005773/0.7538, allocations: 2.867 MB / 0.796 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007102/0.7545, allocations: 274.5 kB / 0.7963 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005109/0.7551, allocations: 47.78 kB / 0.7963 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.7567, allocations: 87.78 kB / 0.7964 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.757, allocations: 128.6 kB / 0.7965 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001966/0.7572, allocations: 71.95 kB / 0.7966 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001429/0.7587, allocations: 0.8848 MB / 0.7974 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7587, allocations: 7.938 kB / 0.7975 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002943/0.7616, allocations: 0.7725 MB / 0.7982 GB, free: 10.12 MB / 0.6075 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.001666/0.7633, allocations: 0.7579 MB / 0.7989 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004373/0.7677, allocations: 2.004 MB / 0.8009 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.7678, allocations: 0 / 0.8009 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002892/0.7707, allocations: 1.426 MB / 0.8023 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004054/0.7748, allocations: 0.5705 MB / 0.8029 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008477/0.7833, allocations: 4.522 MB / 0.8073 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001292/0.7846, allocations: 1.332 MB / 0.8086 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001912/0.7865, allocations: 346.1 kB / 0.8089 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006586/0.7872, allocations: 159.4 kB / 0.8091 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of SimCode: time 7.61e-07/0.7872, allocations: 4 kB / 0.8091 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of Templates: time 0.2818/1.069, allocations: 35.23 MB / 0.8435 GB, free: 231 MB / 0.6231 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