Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001762/0.001762, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 221.8 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 96.08 kB / 269.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.7403/0.7403, allocations: 91.22 MB / 407.8 MB, free: 2.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 51.92 kB / 483.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.28, allocations: 64.98 MB / 0.5357 GB, free: 33.71 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.DynamicBoundaries): time 0.442/0.7221, allocations: 185.7 MB / 0.717 GB, free: 0.7969 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.05014/0.7723, allocations: 45.44 MB / 0.7614 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003731/0.776, allocations: 35.81 kB / 0.7614 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.006178/0.7823, allocations: 1.781 MB / 0.7632 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.01444/0.7968, allocations: 3.524 MB / 0.7666 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.01996/0.8168, allocations: 5.965 MB / 0.7725 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.007182/0.824, allocations: 4.908 MB / 0.7772 GB, free: 9.738 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.8259, allocations: 0.7591 MB / 0.778 GB, free: 9.457 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02579/0.8517, allocations: 10.98 MB / 0.7887 GB, free: 308 kB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003211/0.8549, allocations: 1.591 MB / 0.7903 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.001319/0.8563, allocations: 168 kB / 0.7904 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02808/0.8844, allocations: 10.31 MB / 0.8005 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.001097/0.8855, allocations: 489.6 kB / 0.801 GB, free: 4.02 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.003205/0.8888, allocations: 1.37 MB / 0.8023 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.02636/0.9152, allocations: 8.909 MB / 0.811 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.286e-05/0.9152, allocations: 4 kB / 0.811 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.963e-06/0.9153, allocations: 4 kB / 0.811 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001753/0.9154, allocations: 0 / 0.811 GB, free: 10.3 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.01479/0.9302, allocations: 4.474 MB / 0.8154 GB, free: 5.789 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.9303, allocations: 8.031 kB / 0.8154 GB, free: 5.781 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002833/0.9331, allocations: 0.5363 MB / 0.8159 GB, free: 5.242 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002529/0.9357, allocations: 1.201 MB / 0.8171 GB, free: 4.016 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.9359, allocations: 164.9 kB / 0.8172 GB, free: 3.852 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000557/0.9365, allocations: 236.4 kB / 0.8175 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007869/0.9443, allocations: 2.909 MB / 0.8203 GB, free: 0.6172 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-05/0.9445, allocations: 7.938 kB / 0.8203 GB, free: 0.6094 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003165/0.9448, allocations: 92 kB / 0.8204 GB, free: 0.5195 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.621e-05/0.9449, allocations: 60 kB / 0.8205 GB, free: 472 kB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006296/0.9512, allocations: 2.437 MB / 0.8228 GB, free: 14.02 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01684/0.9681, allocations: 12.56 MB / 0.8351 GB, free: 284 kB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005701/0.9738, allocations: 2.238 MB / 0.8373 GB, free: 14 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002171/0.976, allocations: 1.125 MB / 0.8384 GB, free: 12.86 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06598/1.042, allocations: 32.29 MB / 0.8699 GB, free: 8.738 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/1.042, allocations: 58.55 kB / 0.87 GB, free: 8.672 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=226): time 3.838e-06/1.042, allocations: 0 / 0.87 GB, free: 8.672 MB / 0.6042 GB Notification: Performance of matching and sorting (n=226): time 0.01184/1.054, allocations: 4.674 MB / 0.8745 GB, free: 3.867 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/1.054, allocations: 203.9 kB / 0.8747 GB, free: 3.625 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/1.056, allocations: 1.128 MB / 0.8758 GB, free: 2.484 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001317/1.056, allocations: 61.7 kB / 0.8759 GB, free: 2.418 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006442/1.057, allocations: 0.8856 MB / 0.8767 GB, free: 1.52 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006146/1.057, allocations: 0.7454 MB / 0.8775 GB, free: 0.7812 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005222/1.058, allocations: 347.5 kB / 0.8778 GB, free: 448 kB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.769e-05/1.058, allocations: 305.1 kB / 0.8781 GB, free: 140 kB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/1.059, allocations: 0.6911 MB / 0.8788 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/1.061, allocations: 0.9453 MB / 0.8797 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002983/1.064, allocations: 1.791 MB / 0.8814 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/1.064, allocations: 8 kB / 0.8815 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=250) (initialization): time 0.00448/1.068, allocations: 2.333 MB / 0.8837 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/1.068, allocations: 15.97 kB / 0.8837 GB, free: 10.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/1.068, allocations: 8 kB / 0.8838 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000886/1.069, allocations: 292.9 kB / 0.884 GB, free: 9.859 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/1.071, allocations: 363.5 kB / 0.8844 GB, free: 9.504 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006693/1.077, allocations: 8.941 MB / 0.8931 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/1.079, allocations: 206.5 kB / 0.8933 GB, free: 15.58 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/1.079, allocations: 91.91 kB / 0.8934 GB, free: 15.49 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 24 (source.outlet.state.phase,source1.outlet.state.phase,source2.outlet.state.phase,source3.outlet.state.phase,source4.outlet.state.phase,source5.outlet.state.phase,dynamicPressureInflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007929/1.08, allocations: 397.5 kB / 0.8938 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004463/1.08, allocations: 193.6 kB / 0.894 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007626/1.088, allocations: 6.08 MB / 0.8999 GB, free: 8.781 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.006e-05/1.088, allocations: 79.89 kB / 0.9 GB, free: 8.703 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/1.088, allocations: 4 kB / 0.9 GB, free: 8.699 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/1.088, allocations: 15.95 kB / 0.9 GB, free: 8.684 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/1.1, allocations: 9.588 MB / 0.9094 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/1.1, allocations: 4 kB / 0.9094 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/1.101, allocations: 315.5 kB / 0.9097 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008743/1.102, allocations: 316.8 kB / 0.91 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/1.102, allocations: 71.97 kB / 0.91 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007184/1.109, allocations: 8.956 MB / 0.9188 GB, free: 4.574 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/1.109, allocations: 7.938 kB / 0.9188 GB, free: 4.566 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5257/1.635, allocations: 133.3 MB / 1.049 GB, free: 168.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006947/1.636, allocations: 392.5 kB / 1.049 GB, free: 168.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000562/1.636, allocations: 44 kB / 1.049 GB, free: 168.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/1.638, allocations: 135.3 kB / 1.05 GB, free: 168 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005364/1.639, allocations: 181.5 kB / 1.05 GB, free: 167.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002651/1.639, allocations: 83.95 kB / 1.05 GB, free: 167.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0009162/1.64, allocations: 0.7464 MB / 1.051 GB, free: 167 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.7e-07/1.64, allocations: 0 / 1.051 GB, free: 167 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01353/1.653, allocations: 4.452 MB / 1.055 GB, free: 162.7 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (flowResistance5.inlet.m_flow,flowResistance4.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance1.inlet.m_flow,flowResistance.inlet.m_flow) * Number of discrete variables: 42 ($cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,source5.outlet.state.phase,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,source4.outlet.state.phase,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,source3.outlet.state.phase,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,source2.outlet.state.phase,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,source1.outlet.state.phase,$cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,source.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 172 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02217/1.676, allocations: 3.042 MB / 1.058 GB, free: 160.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.005742/1.681, allocations: 3.426 MB / 1.061 GB, free: 156.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/1.681, allocations: 0 / 1.061 GB, free: 156.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00328/1.685, allocations: 2.807 MB / 1.064 GB, free: 153.7 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004429/1.689, allocations: 0.7227 MB / 1.065 GB, free: 153 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01534/1.705, allocations: 11.89 MB / 1.076 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/1.707, allocations: 2.101 MB / 1.078 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.002623/1.709, allocations: 0.8666 MB / 1.079 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001304/1.71, allocations: 255.3 kB / 1.079 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of SimCode: time 9.72e-07/1.711, allocations: 0 / 1.079 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.4482/2.159, allocations: 201.4 MB / 1.276 GB, free: 196.4 MB / 0.6511 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.DynamicBoundaries_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches