Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.Examples.SimpleAirCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001956/0.001955, allocations: 100 kB / 16.27 MB, free: 5.965 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.002293/0.002293, allocations: 192.1 kB / 17.2 MB, free: 5.594 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.503/1.503, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.026/1.026, allocations: 93.69 MB / 384.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002957/0.002957, allocations: 91.84 kB / 464.1 MB, free: 6.184 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1925, allocations: 68.26 MB / 0.5198 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.484/1.677, allocations: 395.5 MB / 0.9061 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.1188/1.795, allocations: 72.75 MB / 0.9772 GB, free: 7.223 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003846/1.799, allocations: 67.62 kB / 0.9772 GB, free: 7.156 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.008003/1.807, allocations: 2.379 MB / 0.9795 GB, free: 4.766 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.03306/1.84, allocations: 9.475 MB / 0.9888 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.02456/1.865, allocations: 7.363 MB / 0.996 GB, free: 3.871 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.00789/1.873, allocations: 4.304 MB / 1 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002595/1.876, allocations: 1.116 MB / 1.001 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00543/1.881, allocations: 2.219 MB / 1.003 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004006/1.885, allocations: 1.977 MB / 1.005 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001354/1.886, allocations: 308 kB / 1.006 GB, free: 9.926 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5326/2.419, allocations: 25.33 MB / 1.03 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.002153/2.421, allocations: 0.9826 MB / 1.031 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.002981/2.424, allocations: 1.612 MB / 1.033 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.04122/2.466, allocations: 13.97 MB / 1.047 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/2.466, allocations: 1.062 kB / 1.047 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.964e-06/2.466, allocations: 0.75 kB / 1.047 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.489e-05/2.466, allocations: 0 / 1.047 GB, free: 13.28 MB / 0.7169 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.01739/2.483, allocations: 5.676 MB / 1.052 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/2.483, allocations: 7.219 kB / 1.052 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008047/2.484, allocations: 323.8 kB / 1.052 GB, free: 10.93 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/2.486, allocations: 1.455 MB / 1.054 GB, free: 10.47 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005313/2.487, allocations: 0.7018 MB / 1.055 GB, free: 9.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003887/2.487, allocations: 254.8 kB / 1.055 GB, free: 9.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006924/2.494, allocations: 4.322 MB / 1.059 GB, free: 9.734 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.083e-05/2.494, allocations: 4.984 kB / 1.059 GB, free: 9.73 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/2.494, allocations: 99.88 kB / 1.059 GB, free: 9.73 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002495/2.495, allocations: 206.1 kB / 1.059 GB, free: 9.723 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007496/2.502, allocations: 5.085 MB / 1.064 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/2.523, allocations: 15.72 MB / 1.08 GB, free: 19.16 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004768/2.527, allocations: 3.011 MB / 1.083 GB, free: 19.1 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003417/2.531, allocations: 2.276 MB / 1.085 GB, free: 19.06 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008719/2.54, allocations: 9.35 MB / 1.094 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.827e-05/2.54, allocations: 65.52 kB / 1.094 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=309): time 8.156e-06/2.54, allocations: 0 / 1.094 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=314): time 0.02805/2.568, allocations: 12.96 MB / 1.107 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/2.568, allocations: 80.78 kB / 1.107 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/2.569, allocations: 1.16 MB / 1.108 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0006069/2.57, allocations: 81.5 kB / 1.108 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004776/2.571, allocations: 0.8164 MB / 1.109 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009043/2.572, allocations: 1.052 MB / 1.11 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008776/2.572, allocations: 0.511 MB / 1.11 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001256/2.573, allocations: 305.1 kB / 1.111 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002887/2.575, allocations: 1.702 MB / 1.112 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003223/2.579, allocations: 1.887 MB / 1.114 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006371/2.585, allocations: 3.669 MB / 1.118 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/2.585, allocations: 2.625 kB / 1.118 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01169/2.597, allocations: 5.281 MB / 1.123 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/2.597, allocations: 5.281 kB / 1.123 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.392e-05/2.597, allocations: 14.67 kB / 1.123 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002598/2.6, allocations: 0.8359 MB / 1.124 GB, free: 268 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003258/2.603, allocations: 0.6209 MB / 1.124 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01952/2.622, allocations: 14.68 MB / 1.139 GB, free: 2.133 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/2.625, allocations: 148.5 kB / 1.139 GB, free: 2.027 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000597/2.626, allocations: 180 kB / 1.139 GB, free: 1.887 MB / 0.7481 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.001476/2.627, allocations: 0.5453 MB / 1.139 GB, free: 1.574 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007412/2.628, allocations: 215.8 kB / 1.14 GB, free: 1.363 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/2.645, allocations: 8.273 MB / 1.148 GB, free: 9.367 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.914e-05/2.645, allocations: 32 kB / 1.148 GB, free: 9.336 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.13e-05/2.645, allocations: 11.94 kB / 1.148 GB, free: 9.324 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.085e-05/2.645, allocations: 15.94 kB / 1.148 GB, free: 9.309 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02147/2.667, allocations: 9.313 MB / 1.157 GB, free: 4 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.29e-05/2.667, allocations: 12.05 kB / 1.157 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003219/2.67, allocations: 0.6205 MB / 1.157 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002839/2.673, allocations: 0.8506 MB / 1.158 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007542/2.673, allocations: 125.8 kB / 1.158 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02144/2.695, allocations: 14.67 MB / 1.173 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/2.695, allocations: 0 / 1.173 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0216/2.717, allocations: 7.736 MB / 1.18 GB, free: 7.07 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/2.719, allocations: 0.6736 MB / 1.181 GB, free: 6.375 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/2.72, allocations: 62.27 kB / 1.181 GB, free: 6.316 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002427/2.723, allocations: 145.3 kB / 1.181 GB, free: 6.176 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008578/2.724, allocations: 266 kB / 1.181 GB, free: 5.918 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006973/2.724, allocations: 178.2 kB / 1.182 GB, free: 5.746 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001799/2.726, allocations: 0.9323 MB / 1.182 GB, free: 4.816 MB / 0.795 GB Notification: Performance of sort global known variables: time 3e-07/2.726, allocations: 0 / 1.182 GB, free: 4.816 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.01463/2.741, allocations: 3.242 MB / 1.186 GB, free: 1.574 MB / 0.795 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.01591/2.757, allocations: 3.925 MB / 1.189 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.02072/2.777, allocations: 6.861 MB / 1.196 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/2.777, allocations: 0 / 1.196 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.008514/2.786, allocations: 3.771 MB / 1.2 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005222/2.791, allocations: 0.926 MB / 1.201 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/2.804, allocations: 6.288 MB / 1.207 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/2.806, allocations: 1.82 MB / 1.209 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/2.808, allocations: 359.2 kB / 1.209 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of SimCode: time 1.112e-06/2.808, allocations: 0 / 1.209 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.511/3.319, allocations: 156.7 MB / 1.362 GB, free: 0.5012 GB / 0.9512 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.sim & ./ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.SimpleAirCycle_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches