Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001702/0.001702, allocations: 101.5 kB / 15.99 MB, free: 6.355 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.00181/0.00181, allocations: 196.8 kB / 16.91 MB, free: 6.188 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.394/1.394, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7684/0.7684, allocations: 93.69 MB / 384.4 MB, free: 5.461 MB / 302.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.002486/0.002486, allocations: 79.88 kB / 463.5 MB, free: 6.508 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1383, allocations: 68.26 MB / 0.5193 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.4003/0.5387, allocations: 188.3 MB / 0.7032 GB, free: 3.117 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0235/0.5622, allocations: 17.96 MB / 0.7208 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002353/0.5646, allocations: 83.38 kB / 0.7208 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002684/0.5674, allocations: 0.8744 MB / 0.7217 GB, free: 192 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006228/0.5736, allocations: 2.19 MB / 0.7238 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004543/0.5782, allocations: 1.697 MB / 0.7255 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004865/0.583, allocations: 3.621 MB / 0.729 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008389/0.5839, allocations: 463.4 kB / 0.7295 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002952/0.5869, allocations: 1.569 MB / 0.731 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002534/0.5894, allocations: 1.587 MB / 0.7325 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005338/0.59, allocations: 168 kB / 0.7327 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005686/0.5956, allocations: 2.593 MB / 0.7352 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007109/0.5964, allocations: 454 kB / 0.7357 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001754/0.5981, allocations: 1.088 MB / 0.7367 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.2688/0.8669, allocations: 2.349 MB / 0.739 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.867, allocations: 0 / 0.739 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.754e-06/0.867, allocations: 2.688 kB / 0.739 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.538e-05/0.867, allocations: 0 / 0.739 GB, free: 12.34 MB / 0.5762 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.004391/0.8714, allocations: 2.629 MB / 0.7416 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.8714, allocations: 9.844 kB / 0.7416 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006275/0.8721, allocations: 250.8 kB / 0.7418 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.8737, allocations: 1.22 MB / 0.743 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.778e-05/0.8738, allocations: 113.4 kB / 0.7431 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.874, allocations: 155 kB / 0.7433 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002556/0.8766, allocations: 1.636 MB / 0.7449 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.8766, allocations: 1.625 kB / 0.7449 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.8768, allocations: 64.66 kB / 0.745 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.997e-05/0.8768, allocations: 36.81 kB / 0.745 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002266/0.8791, allocations: 1.48 MB / 0.7464 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007899/0.887, allocations: 7.166 MB / 0.7534 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002788/0.8898, allocations: 1.545 MB / 0.7549 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/0.891, allocations: 0.7555 MB / 0.7557 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006695/0.8977, allocations: 5.952 MB / 0.7615 GB, free: 17.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.8977, allocations: 63.7 kB / 0.7616 GB, free: 17.65 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=166): time 3.386e-06/0.8978, allocations: 0.5 kB / 0.7616 GB, free: 17.65 MB / 0.5919 GB Notification: Performance of matching and sorting (n=166): time 0.007067/0.9048, allocations: 3.15 MB / 0.7646 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.905, allocations: 175.5 kB / 0.7648 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/0.9068, allocations: 1.305 MB / 0.7661 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.9069, allocations: 61.72 kB / 0.7661 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005608/0.9075, allocations: 0.789 MB / 0.7669 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003476/0.9078, allocations: 0.5649 MB / 0.7674 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004242/0.9083, allocations: 291.9 kB / 0.7677 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.9084, allocations: 306.6 kB / 0.768 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009659/0.9094, allocations: 499 kB / 0.7685 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.9105, allocations: 0.8302 MB / 0.7693 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.9127, allocations: 1.437 MB / 0.7707 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.9127, allocations: 3.75 kB / 0.7707 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.00351/0.9162, allocations: 1.86 MB / 0.7725 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.9162, allocations: 9.375 kB / 0.7725 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.9163, allocations: 11.45 kB / 0.7725 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007544/0.917, allocations: 228.3 kB / 0.7728 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.9185, allocations: 381.8 kB / 0.7731 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00652/0.925, allocations: 7.674 MB / 0.7806 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.9267, allocations: 181.5 kB / 0.7808 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001946/0.9269, allocations: 79.23 kB / 0.7809 GB, free: 7.426 MB / 0.5919 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.000818/0.9277, allocations: 339.7 kB / 0.7812 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004592/0.9282, allocations: 199.1 kB / 0.7814 GB, free: 7.199 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/0.9326, allocations: 2.067 MB / 0.7834 GB, free: 6.961 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.9326, allocations: 21.47 kB / 0.7834 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.9327, allocations: 7 kB / 0.7834 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-05/0.9327, allocations: 9.719 kB / 0.7834 GB, free: 6.957 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006557/0.9392, allocations: 3.946 MB / 0.7873 GB, free: 6.098 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.9393, allocations: 8.312 kB / 0.7873 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.9403, allocations: 257 kB / 0.7875 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001687/0.942, allocations: 478 kB / 0.788 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.9421, allocations: 52.08 kB / 0.7881 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008039/0.9502, allocations: 9.977 MB / 0.7978 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.9502, allocations: 5.031 kB / 0.7978 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004769/0.955, allocations: 2.881 MB / 0.8006 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/0.9556, allocations: 270.6 kB / 0.8009 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002413/0.9558, allocations: 43.22 kB / 0.8009 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.9571, allocations: 85.77 kB / 0.801 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/0.9573, allocations: 133.7 kB / 0.8011 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.9575, allocations: 71.11 kB / 0.8012 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001099/0.9586, allocations: 0.906 MB / 0.8021 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9586, allocations: 0 / 0.8021 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002219/0.9608, allocations: 0.7738 MB / 0.8028 GB, free: 11.99 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.001234/0.9621, allocations: 0.7584 MB / 0.8036 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003652/0.9657, allocations: 2.05 MB / 0.8056 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.9657, allocations: 1 kB / 0.8056 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002462/0.9682, allocations: 1.438 MB / 0.807 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/0.9714, allocations: 0.6244 MB / 0.8076 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007209/0.9786, allocations: 4.609 MB / 0.8121 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009278/0.9795, allocations: 1.339 MB / 0.8134 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005608/0.9801, allocations: 188.4 kB / 0.8136 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of SimCode: time 7.61e-07/0.9801, allocations: 4 kB / 0.8136 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of Templates: time 0.09203/1.072, allocations: 79.15 MB / 0.8909 GB, free: 1.164 MB / 0.67 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches