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.0009001/0.0009003, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 181.6 kB / 16.92 MB, free: 6.891 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.317/1.317, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6086/0.6086, allocations: 89.65 MB / 381.7 MB, free: 11.32 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.0003875/0.0003875, allocations: 8.125 kB / 461.3 MB, free: 24.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1161, allocations: 68.83 MB / 0.5177 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.413/0.5292, allocations: 185.3 MB / 0.6987 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02068/0.5499, allocations: 17.75 MB / 0.716 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.5517, allocations: 35.81 kB / 0.716 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.5541, allocations: 0.851 MB / 0.7169 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005686/0.5598, allocations: 2.122 MB / 0.7189 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004265/0.5641, allocations: 1.623 MB / 0.7205 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004806/0.5689, allocations: 4.346 MB / 0.7248 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006001/0.5695, allocations: 407.2 kB / 0.7252 GB, free: 6.398 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.5717, allocations: 1.284 MB / 0.7264 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001779/0.5735, allocations: 1.467 MB / 0.7278 GB, free: 3.637 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.5737, allocations: 84 kB / 0.7279 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005002/0.5788, allocations: 2.515 MB / 0.7304 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003416/0.5791, allocations: 342.3 kB / 0.7307 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009909/0.5801, allocations: 0.9576 MB / 0.7316 GB, free: 15.72 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002699/0.5828, allocations: 2.143 MB / 0.7337 GB, free: 13.58 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.5828, allocations: 0 / 0.7337 GB, free: 13.58 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5828, allocations: 0 / 0.7337 GB, free: 13.58 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.764e-05/0.5829, allocations: 0 / 0.7337 GB, free: 13.58 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.003785/0.5867, allocations: 2.075 MB / 0.7358 GB, free: 11.45 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.5867, allocations: 8.031 kB / 0.7358 GB, free: 11.44 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005597/0.5873, allocations: 230.4 kB / 0.736 GB, free: 11.21 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.5886, allocations: 0.953 MB / 0.7369 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-05/0.5887, allocations: 111.2 kB / 0.737 GB, free: 10.1 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.5889, allocations: 156.3 kB / 0.7372 GB, free: 9.945 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/0.5915, allocations: 1.651 MB / 0.7388 GB, free: 8.234 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.5916, allocations: 0 / 0.7388 GB, free: 8.234 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.5917, allocations: 63.94 kB / 0.7388 GB, free: 8.172 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.5918, allocations: 40 kB / 0.7389 GB, free: 8.133 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/0.5943, allocations: 1.504 MB / 0.7404 GB, free: 6.633 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008672/0.603, allocations: 7.146 MB / 0.7473 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.6058, allocations: 1.553 MB / 0.7488 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.607, allocations: 0.7541 MB / 0.7496 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00629/0.6133, allocations: 5.974 MB / 0.7554 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.6133, allocations: 55.81 kB / 0.7555 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=166): time 2.876e-06/0.6134, allocations: 0 / 0.7555 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=166): time 0.006373/0.6197, allocations: 3.17 MB / 0.7586 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.6198, allocations: 175.1 kB / 0.7587 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.6212, allocations: 1.091 MB / 0.7598 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.6213, allocations: 57.7 kB / 0.7599 GB, free: 1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004818/0.6218, allocations: 0.681 MB / 0.7605 GB, free: 316 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004203/0.6222, allocations: 0.5737 MB / 0.7611 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.6224, allocations: 137.6 kB / 0.7612 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.409e-05/0.6225, allocations: 305.1 kB / 0.7615 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009654/0.6235, allocations: 0.4959 MB / 0.762 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.6247, allocations: 0.8446 MB / 0.7628 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.6269, allocations: 1.457 MB / 0.7642 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.627, allocations: 7.938 kB / 0.7642 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003342/0.6303, allocations: 1.852 MB / 0.766 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.6304, allocations: 8 kB / 0.7661 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.6304, allocations: 8 kB / 0.7661 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007314/0.6311, allocations: 232.8 kB / 0.7663 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.6325, allocations: 387.5 kB / 0.7667 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005493/0.638, allocations: 7.137 MB / 0.7736 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.6392, allocations: 178.4 kB / 0.7738 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.6394, allocations: 79.92 kB / 0.7739 GB, free: 1.66 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.0005981/0.64, allocations: 329.3 kB / 0.7742 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.6403, allocations: 166 kB / 0.7743 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004017/0.6443, allocations: 2.07 MB / 0.7764 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.6443, allocations: 23.94 kB / 0.7764 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.6443, allocations: 4 kB / 0.7764 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.6444, allocations: 7.969 kB / 0.7764 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006247/0.6506, allocations: 3.903 MB / 0.7802 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.6506, allocations: 4 kB / 0.7802 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.6517, allocations: 255.7 kB / 0.7805 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/0.6535, allocations: 479.4 kB / 0.7809 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.6536, allocations: 55.97 kB / 0.781 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006932/0.6605, allocations: 9.425 MB / 0.7902 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.6606, allocations: 4.031 kB / 0.7902 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004761/0.6653, allocations: 2.902 MB / 0.793 GB, free: 13 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004336/0.6658, allocations: 266.6 kB / 0.7933 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.666, allocations: 36 kB / 0.7933 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.6672, allocations: 95.78 kB / 0.7934 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.6674, allocations: 132.6 kB / 0.7935 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.6675, allocations: 67.95 kB / 0.7936 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001013/0.6686, allocations: 0.7678 MB / 0.7943 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6686, allocations: 0 / 0.7943 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002096/0.6707, allocations: 0.7725 MB / 0.7951 GB, free: 10.85 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.001243/0.6719, allocations: 0.773 MB / 0.7958 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003231/0.6752, allocations: 2.006 MB / 0.7978 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.6752, allocations: 4 kB / 0.7978 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002349/0.6776, allocations: 1.445 MB / 0.7992 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003416/0.681, allocations: 0.5502 MB / 0.7998 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006425/0.6874, allocations: 4.552 MB / 0.8042 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000853/0.6883, allocations: 1.269 MB / 0.8054 GB, free: 12 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2182/0.9065, allocations: 170 kB / 0.8056 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.933e-06/0.9066, allocations: 0 / 0.8056 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.06332/0.9699, allocations: 71.24 MB / 0.8752 GB, free: 174.8 MB / 0.6075 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