Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.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.Examples.SimpleAirCycle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|compressor.m_flow|compressor.omega|compressor.phi|fan.m_flow|fan1.m_flow|heatExchange_CounterFlowNTU.h_out_A|heatExchange_CounterFlowNTU.h_out_B|heatExchange_CounterFlowNTU1.h_out_A|heatExchange_CounterFlowNTU1.h_out_B|heatExchange_CounterFlowNTU2.h_out_A|heatExchange_CounterFlowNTU2.h_out_B|turbine1.m_flow|turbine1.omega|turbine1.phi",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle") translateModel(ThermofluidStream.Examples.SimpleAirCycle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|compressor.m_flow|compressor.omega|compressor.phi|fan.m_flow|fan1.m_flow|heatExchange_CounterFlowNTU.h_out_A|heatExchange_CounterFlowNTU.h_out_B|heatExchange_CounterFlowNTU1.h_out_A|heatExchange_CounterFlowNTU1.h_out_B|heatExchange_CounterFlowNTU2.h_out_A|heatExchange_CounterFlowNTU2.h_out_B|turbine1.m_flow|turbine1.omega|turbine1.phi",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 100.1 kB / 15.88 MB, free: 12 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.001188/0.001188, allocations: 199.6 kB / 16.8 MB, free: 6.828 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.273/1.273, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6487/0.6487, allocations: 89.5 MB / 380.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 78.66 kB / 458.2 MB, free: 23.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1205, allocations: 67.31 MB / 0.5132 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.9852/1.106, allocations: 399.9 MB / 0.9037 GB, free: 432 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.06708/1.173, allocations: 74.54 MB / 0.9765 GB, free: 8.031 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002648/1.176, allocations: 27.22 kB / 0.9765 GB, free: 8.012 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.005525/1.181, allocations: 2.217 MB / 0.9787 GB, free: 6.531 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02216/1.203, allocations: 8.23 MB / 0.9867 GB, free: 0.6875 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01812/1.221, allocations: 6.501 MB / 0.9931 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.007132/1.229, allocations: 6.03 MB / 0.9989 GB, free: 6.766 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/1.23, allocations: 0.9777 MB / 0.9999 GB, free: 5.762 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004272/1.234, allocations: 1.934 MB / 1.002 GB, free: 4.062 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/1.237, allocations: 1.972 MB / 1.004 GB, free: 2.281 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0004564/1.238, allocations: 207.9 kB / 1.004 GB, free: 2.078 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04644/1.284, allocations: 28.35 MB / 1.032 GB, free: 8.027 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00154/1.286, allocations: 0.8541 MB / 1.032 GB, free: 7.191 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002324/1.288, allocations: 1.457 MB / 1.034 GB, free: 5.75 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.02098/1.309, allocations: 9.646 MB / 1.043 GB, free: 12.7 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.309, allocations: 0 / 1.043 GB, free: 12.7 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.174e-06/1.309, allocations: 4 kB / 1.043 GB, free: 12.7 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 5.559e-05/1.309, allocations: 0 / 1.043 GB, free: 12.7 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 649 * Number of variables: 649 Notification: Performance of Generate backend data structure: time 0.01364/1.323, allocations: 5.453 MB / 1.049 GB, free: 7.207 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/1.323, allocations: 15.97 kB / 1.049 GB, free: 7.191 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007306/1.324, allocations: 296.6 kB / 1.049 GB, free: 6.898 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/1.325, allocations: 1.188 MB / 1.05 GB, free: 5.684 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006106/1.326, allocations: 0.6872 MB / 1.051 GB, free: 4.895 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003835/1.326, allocations: 257.2 kB / 1.051 GB, free: 4.648 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006944/1.333, allocations: 4.331 MB / 1.055 GB, free: 280 kB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.411e-05/1.333, allocations: 0 / 1.055 GB, free: 280 kB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/1.334, allocations: 98.56 kB / 1.055 GB, free: 188 kB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002471/1.334, allocations: 205 kB / 1.055 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007993/1.342, allocations: 5.085 MB / 1.06 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02239/1.364, allocations: 15.59 MB / 1.076 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005985/1.37, allocations: 3.008 MB / 1.079 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004401/1.375, allocations: 2.275 MB / 1.081 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00794/1.383, allocations: 9.355 MB / 1.09 GB, free: 9.637 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.811e-05/1.383, allocations: 64.95 kB / 1.09 GB, free: 9.562 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 7.835e-06/1.383, allocations: 0 / 1.09 GB, free: 9.562 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03203/1.415, allocations: 12.89 MB / 1.103 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/1.415, allocations: 85.84 kB / 1.103 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/1.416, allocations: 0.9382 MB / 1.104 GB, free: 11.34 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0004404/1.417, allocations: 77.7 kB / 1.104 GB, free: 11.26 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004695/1.417, allocations: 0.7167 MB / 1.104 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001059/1.418, allocations: 1.053 MB / 1.105 GB, free: 9.496 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/1.42, allocations: 0.5036 MB / 1.106 GB, free: 8.992 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.963e-05/1.42, allocations: 301.1 kB / 1.106 GB, free: 8.695 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003303/1.423, allocations: 1.707 MB / 1.108 GB, free: 6.984 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003571/1.427, allocations: 1.89 MB / 1.11 GB, free: 5.078 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007033/1.434, allocations: 3.666 MB / 1.113 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/1.434, allocations: 0 / 1.113 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.2568/1.69, allocations: 5.247 MB / 1.118 GB, free: 366.5 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/1.691, allocations: 5.844 kB / 1.118 GB, free: 366.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.07e-05/1.691, allocations: 17.27 kB / 1.118 GB, free: 366.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002597/1.693, allocations: 0.8298 MB / 1.119 GB, free: 366.3 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003148/1.696, allocations: 0.6192 MB / 1.12 GB, free: 366.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/1.711, allocations: 13.54 MB / 1.133 GB, free: 355.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/1.714, allocations: 225.1 kB / 1.133 GB, free: 355.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007968/1.715, allocations: 190.2 kB / 1.133 GB, free: 355.3 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (276): * Single equations (assignments): 251 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(2,17,100.0%), (1,3,100.0%), (3,1,88.9%), (3,1,88.9%), (2,17,100.0%), (1,1,100.0%), (3,1,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001671/1.716, allocations: 0.5257 MB / 1.134 GB, free: 355 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008373/1.717, allocations: 195.1 kB / 1.134 GB, free: 355 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/1.734, allocations: 8.241 MB / 1.142 GB, free: 352.1 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/1.734, allocations: 32.77 kB / 1.142 GB, free: 352.1 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.031e-05/1.734, allocations: 9.281 kB / 1.142 GB, free: 352.1 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.254e-05/1.734, allocations: 17.66 kB / 1.142 GB, free: 352.1 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/1.753, allocations: 9.242 MB / 1.151 GB, free: 348.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.614e-05/1.753, allocations: 11.94 kB / 1.151 GB, free: 348.4 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002757/1.756, allocations: 0.6115 MB / 1.152 GB, free: 348.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/1.758, allocations: 0.8539 MB / 1.153 GB, free: 348.1 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005584/1.758, allocations: 124.5 kB / 1.153 GB, free: 348.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/1.772, allocations: 13.55 MB / 1.166 GB, free: 336.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.772, allocations: 0 / 1.166 GB, free: 336.7 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/1.787, allocations: 7.694 MB / 1.174 GB, free: 332.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.789, allocations: 0.6574 MB / 1.174 GB, free: 332 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006095/1.789, allocations: 59.88 kB / 1.174 GB, free: 332 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/1.791, allocations: 213.2 kB / 1.175 GB, free: 331.9 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005291/1.792, allocations: 254.9 kB / 1.175 GB, free: 331.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003655/1.792, allocations: 178.1 kB / 1.175 GB, free: 331.7 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0009448/1.793, allocations: 0.7887 MB / 1.176 GB, free: 331.2 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.4e-07/1.793, allocations: 0 / 1.176 GB, free: 331.2 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.008599/1.802, allocations: 3.232 MB / 1.179 GB, free: 330.6 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (heatExchange_CounterFlowNTU.h_out_A,heatExchange_CounterFlowNTU.h_out_B,heatExchange_CounterFlowNTU1.h_out_A,heatExchange_CounterFlowNTU1.h_out_B,compressor.m_flow,compressor.phi,compressor.omega,heatExchange_CounterFlowNTU2.inletA.m_flow,heatExchange_CounterFlowNTU2.h_out_A,heatExchange_CounterFlowNTU2.h_out_B,turbine1.phi,turbine1.omega,splitterT1_1.splitterN.inlet.m_flow,splitterT1_2.splitterN.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 (279): * Single equations (assignments): 254 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(3,1,88.9%), (1,1,100.0%), (2,17,100.0%), (3,1,88.9%), (3,1,88.9%), (2,17,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01052/1.812, allocations: 3.934 MB / 1.183 GB, free: 329.7 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0107/1.823, allocations: 5.706 MB / 1.188 GB, free: 326.4 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.944e-06/1.823, allocations: 0 / 1.188 GB, free: 326.4 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.006466/1.829, allocations: 3.758 MB / 1.192 GB, free: 323.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/1.834, allocations: 0.861 MB / 1.193 GB, free: 322.4 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009011/1.843, allocations: 7.029 MB / 1.2 GB, free: 315.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009798/1.844, allocations: 1.744 MB / 1.201 GB, free: 313.6 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001487/1.845, allocations: 343.2 kB / 1.202 GB, free: 313.3 MB / 0.7637 GB Notification: Performance of SimCode: time 1.082e-06/1.845, allocations: 0 / 1.202 GB, free: 313.3 MB / 0.7637 GB Notification: Performance of Templates: time 0.1239/1.969, allocations: 148.7 MB / 1.347 GB, free: 164.5 MB / 0.7637 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.sim & ./ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleAirCycle_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches