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.002205/0.002205, allocations: 103 kB / 16.4 MB, free: 6.465 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.002072/0.002073, allocations: 189.7 kB / 17.34 MB, free: 5.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.345/1.345, allocations: 222.9 MB / 241 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.7423/0.7423, allocations: 91.18 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 83.88 kB / 0.5175 GB, free: 4.113 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3285, allocations: 67.68 MB / 0.5836 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5748/0.9034, allocations: 189.2 MB / 0.7684 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0199/0.9234, allocations: 17.8 MB / 0.7858 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003311/0.9267, allocations: 62.09 kB / 0.7858 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003559/0.9303, allocations: 0.9834 MB / 0.7868 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007606/0.938, allocations: 2.338 MB / 0.7891 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005781/0.9438, allocations: 1.834 MB / 0.7909 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006041/0.9499, allocations: 3.551 MB / 0.7943 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009539/0.9509, allocations: 455.8 kB / 0.7948 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003677/0.9545, allocations: 1.559 MB / 0.7963 GB, free: 448 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003091/0.9577, allocations: 1.553 MB / 0.7978 GB, free: 180 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006229/0.9583, allocations: 167.7 kB / 0.798 GB, free: 180 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006749/0.9651, allocations: 2.56 MB / 0.8005 GB, free: 132 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008824/0.966, allocations: 452.5 kB / 0.8009 GB, free: 48 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.9688, allocations: 1.081 MB / 0.802 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008161/0.977, allocations: 3.218 MB / 0.8051 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.977, allocations: 8.625 kB / 0.8051 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.004e-06/0.977, allocations: 0 / 0.8051 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.491e-05/0.9771, allocations: 0.7812 kB / 0.8051 GB, free: 15.21 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.005378/0.9825, allocations: 2.6 MB / 0.8076 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.9825, allocations: 9.969 kB / 0.8077 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007459/0.9833, allocations: 250.2 kB / 0.8079 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002385/0.9857, allocations: 1.292 MB / 0.8092 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.65e-05/0.9858, allocations: 111.2 kB / 0.8093 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.986, allocations: 159.1 kB / 0.8094 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.9888, allocations: 1.639 MB / 0.811 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.9889, allocations: 3.938 kB / 0.811 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/0.989, allocations: 64.06 kB / 0.8111 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.666e-05/0.9891, allocations: 37.06 kB / 0.8111 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.9917, allocations: 1.481 MB / 0.8126 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/1.002, allocations: 7.135 MB / 0.8195 GB, free: 6.273 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002946/1.005, allocations: 1.556 MB / 0.821 GB, free: 5.414 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/1.006, allocations: 0.7524 MB / 0.8218 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006957/1.013, allocations: 5.952 MB / 0.8276 GB, free: 14.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/1.013, allocations: 64.31 kB / 0.8277 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=166): time 4.048e-06/1.013, allocations: 0 / 0.8277 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of matching and sorting (n=166): time 0.007002/1.02, allocations: 3.141 MB / 0.8307 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.904e-05/1.02, allocations: 177.6 kB / 0.8309 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001799/1.022, allocations: 1.278 MB / 0.8321 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002446/1.022, allocations: 57.7 kB / 0.8322 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006009/1.023, allocations: 0.7793 MB / 0.833 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004631/1.023, allocations: 0.5643 MB / 0.8335 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003962/1.024, allocations: 295.4 kB / 0.8338 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.865e-05/1.024, allocations: 301.1 kB / 0.8341 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009361/1.025, allocations: 0.492 MB / 0.8346 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/1.026, allocations: 0.8261 MB / 0.8354 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/1.028, allocations: 1.438 MB / 0.8368 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/1.028, allocations: 0 / 0.8368 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003672/1.032, allocations: 1.859 MB / 0.8386 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/1.032, allocations: 15.94 kB / 0.8386 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/1.032, allocations: 8 kB / 0.8386 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008303/1.033, allocations: 223.2 kB / 0.8388 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/1.034, allocations: 384.2 kB / 0.8392 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006709/1.041, allocations: 7.676 MB / 0.8467 GB, free: 9.707 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/1.044, allocations: 170.2 kB / 0.8468 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004974/1.044, allocations: 75.98 kB / 0.8469 GB, free: 9.465 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.001255/1.045, allocations: 336.5 kB / 0.8472 GB, free: 9.148 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/1.047, allocations: 185.8 kB / 0.8474 GB, free: 8.965 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/1.051, allocations: 2.066 MB / 0.8494 GB, free: 6.859 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/1.051, allocations: 20 kB / 0.8494 GB, free: 6.84 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/1.051, allocations: 4 kB / 0.8494 GB, free: 6.836 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/1.051, allocations: 7.969 kB / 0.8495 GB, free: 6.828 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007185/1.058, allocations: 3.939 MB / 0.8533 GB, free: 2.848 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/1.058, allocations: 0 / 0.8533 GB, free: 2.848 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/1.059, allocations: 263.2 kB / 0.8536 GB, free: 2.605 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/1.061, allocations: 466 kB / 0.854 GB, free: 2.125 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/1.061, allocations: 55.97 kB / 0.8541 GB, free: 2.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006922/1.068, allocations: 9.966 MB / 0.8638 GB, free: 7.344 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.068, allocations: 10.47 kB / 0.8638 GB, free: 7.336 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005098/1.074, allocations: 2.883 MB / 0.8666 GB, free: 4.402 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000672/1.074, allocations: 266.4 kB / 0.8669 GB, free: 4.121 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002871/1.074, allocations: 43.94 kB / 0.8669 GB, free: 4.078 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/1.076, allocations: 63.89 kB / 0.867 GB, free: 4.016 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/1.076, allocations: 123.5 kB / 0.8671 GB, free: 3.898 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/1.076, allocations: 75.95 kB / 0.8672 GB, free: 3.824 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001213/1.077, allocations: 0.8911 MB / 0.868 GB, free: 2.941 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.3e-07/1.077, allocations: 0 / 0.868 GB, free: 2.941 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00253/1.08, allocations: 0.7725 MB / 0.8688 GB, free: 2.168 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.001342/1.081, allocations: 0.7558 MB / 0.8695 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003413/1.085, allocations: 1.997 MB / 0.8715 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.085, allocations: 2.625 kB / 0.8715 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.002479/1.087, allocations: 1.438 MB / 0.8729 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003409/1.091, allocations: 0.6107 MB / 0.8735 GB, free: 13.38 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006424/1.097, allocations: 3.837 MB / 0.8772 GB, free: 9.496 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008229/1.098, allocations: 1.328 MB / 0.8785 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006854/1.099, allocations: 187.4 kB / 0.8787 GB, free: 7.953 MB / 0.6544 GB Notification: Performance of SimCode: time 2.034e-06/1.099, allocations: 4 kB / 0.8787 GB, free: 7.949 MB / 0.6544 GB Notification: Performance of Templates: time 0.07529/1.174, allocations: 78.43 MB / 0.9553 GB, free: 9.562 MB / 0.7325 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