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.004815/0.004815, allocations: 101.3 kB / 15.88 MB, free: 6.328 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.001188/0.001188, allocations: 193.8 kB / 16.79 MB, free: 6.254 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.287/1.287, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6362/0.6362, allocations: 89.51 MB / 380.1 MB, free: 11.27 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.001605/0.001605, allocations: 83.34 kB / 458.2 MB, free: 23.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 67.3 MB / 0.5132 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.391/0.496, allocations: 187.8 MB / 0.6966 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02091/0.517, allocations: 18.01 MB / 0.7142 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002113/0.5191, allocations: 23.88 kB / 0.7142 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002755/0.5219, allocations: 0.8549 MB / 0.7151 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005767/0.5277, allocations: 2.131 MB / 0.7171 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004366/0.5321, allocations: 1.625 MB / 0.7187 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004824/0.5369, allocations: 4.338 MB / 0.723 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007426/0.5377, allocations: 410.2 kB / 0.7234 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002533/0.5403, allocations: 1.315 MB / 0.7246 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002172/0.5424, allocations: 1.518 MB / 0.7261 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0005103/0.543, allocations: 104 kB / 0.7262 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005615/0.5486, allocations: 2.538 MB / 0.7287 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000599/0.5492, allocations: 386.2 kB / 0.7291 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001678/0.5509, allocations: 0.9598 MB / 0.73 GB, free: 5.273 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0034/0.5543, allocations: 2.187 MB / 0.7321 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5543, allocations: 0 / 0.7321 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5543, allocations: 0 / 0.7321 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.811e-05/0.5544, allocations: 0 / 0.7321 GB, free: 3.082 MB / 0.5294 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.005097/0.5595, allocations: 2.409 MB / 0.7345 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.5596, allocations: 8.031 kB / 0.7345 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000749/0.5603, allocations: 234.4 kB / 0.7347 GB, free: 384 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.5619, allocations: 0.9492 MB / 0.7357 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-05/0.562, allocations: 111.2 kB / 0.7358 GB, free: 15.26 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002392/0.5622, allocations: 160.2 kB / 0.7359 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/0.5651, allocations: 1.636 MB / 0.7375 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.5652, allocations: 3.938 kB / 0.7375 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.5653, allocations: 64 kB / 0.7376 GB, free: 13.35 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.5654, allocations: 36 kB / 0.7376 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.568, allocations: 1.481 MB / 0.7391 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009202/0.5772, allocations: 7.099 MB / 0.746 GB, free: 4.164 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.5801, allocations: 1.545 MB / 0.7475 GB, free: 2.566 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.5813, allocations: 0.7502 MB / 0.7482 GB, free: 1.805 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006466/0.5878, allocations: 5.962 MB / 0.7541 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.5879, allocations: 55.81 kB / 0.7541 GB, free: 11 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=166): time 3.406e-06/0.5879, allocations: 0 / 0.7541 GB, free: 11 MB / 0.5606 GB Notification: Performance of matching and sorting (n=166): time 0.006607/0.5945, allocations: 3.133 MB / 0.7572 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.5946, allocations: 171.1 kB / 0.7573 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.5962, allocations: 1.095 MB / 0.7584 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.5963, allocations: 57.7 kB / 0.7585 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004877/0.5968, allocations: 0.6888 MB / 0.7591 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/0.5973, allocations: 0.5698 MB / 0.7597 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004178/0.5977, allocations: 287.5 kB / 0.76 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.838e-05/0.5978, allocations: 305.1 kB / 0.7602 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009582/0.5987, allocations: 495.8 kB / 0.7607 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.6, allocations: 0.825 MB / 0.7615 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/0.6022, allocations: 1.445 MB / 0.7629 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.6023, allocations: 0 / 0.7629 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003563/0.6058, allocations: 1.841 MB / 0.7647 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.6059, allocations: 10.19 kB / 0.7647 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.6059, allocations: 8 kB / 0.7648 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007925/0.6067, allocations: 228.1 kB / 0.765 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.6081, allocations: 379.5 kB / 0.7653 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005357/0.6134, allocations: 7.136 MB / 0.7723 GB, free: 7.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.6147, allocations: 178.4 kB / 0.7725 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002083/0.6149, allocations: 75.98 kB / 0.7725 GB, free: 6.898 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.0006579/0.6156, allocations: 329.2 kB / 0.7729 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004988/0.6161, allocations: 162 kB / 0.773 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/0.6203, allocations: 2.062 MB / 0.775 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/0.6203, allocations: 16 kB / 0.775 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.6204, allocations: 4 kB / 0.775 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.6204, allocations: 11.97 kB / 0.7751 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006589/0.627, allocations: 3.869 MB / 0.7788 GB, free: 268 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.627, allocations: 4 kB / 0.7788 GB, free: 264 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.628, allocations: 255.7 kB / 0.7791 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001843/0.6299, allocations: 479.5 kB / 0.7795 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.63, allocations: 55.97 kB / 0.7796 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00683/0.6369, allocations: 9.429 MB / 0.7888 GB, free: 5.262 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.6369, allocations: 4 kB / 0.7888 GB, free: 5.258 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005081/0.642, allocations: 2.85 MB / 0.7916 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005111/0.6425, allocations: 258.6 kB / 0.7918 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003091/0.6429, allocations: 40 kB / 0.7919 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.6441, allocations: 87.8 kB / 0.792 GB, free: 1.941 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/0.6444, allocations: 136.5 kB / 0.7921 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/0.6446, allocations: 71.95 kB / 0.7922 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00109/0.6457, allocations: 0.7678 MB / 0.7929 GB, free: 0.9648 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6457, allocations: 0 / 0.7929 GB, free: 0.9648 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00225/0.648, allocations: 0.7723 MB / 0.7937 GB, free: 196 kB / 0.5919 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.001385/0.6494, allocations: 0.762 MB / 0.7944 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003339/0.6527, allocations: 1.994 MB / 0.7964 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.6527, allocations: 4.25 kB / 0.7964 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.6552, allocations: 1.426 MB / 0.7977 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/0.6584, allocations: 0.5543 MB / 0.7983 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.6652, allocations: 4.29 MB / 0.8025 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009558/0.6661, allocations: 1.273 MB / 0.8037 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006127/0.6668, allocations: 163.3 kB / 0.8039 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.6668, allocations: 0 / 0.8039 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of Templates: time 0.2627/0.9295, allocations: 71.44 MB / 0.8736 GB, free: 212.9 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches