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.001332/0.001332, allocations: 107.9 kB / 16.41 MB, free: 6.492 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.001273/0.001273, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.415/1.415, allocations: 222.9 MB / 241.1 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.7715/0.7715, allocations: 97.65 MB / 388.8 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002437/0.002437, allocations: 83.69 kB / 0.5268 GB, free: 38.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1106, allocations: 69.24 MB / 0.5944 GB, free: 476 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.7377/0.8482, allocations: 396.5 MB / 0.9816 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.5256/1.374, allocations: 72.89 MB / 1.053 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002367/1.376, allocations: 67.97 kB / 1.053 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.005551/1.382, allocations: 2.474 MB / 1.055 GB, free: 0.6094 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.02299/1.405, allocations: 9.608 MB / 1.065 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01737/1.422, allocations: 7.427 MB / 1.072 GB, free: 452 kB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.006231/1.428, allocations: 4.313 MB / 1.076 GB, free: 448 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001376/1.43, allocations: 0.7628 MB / 1.077 GB, free: 16.29 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004567/1.434, allocations: 2.273 MB / 1.079 GB, free: 16.27 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003034/1.437, allocations: 1.969 MB / 1.081 GB, free: 16.27 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005657/1.438, allocations: 307.6 kB / 1.081 GB, free: 16.27 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04379/1.482, allocations: 25.4 MB / 1.106 GB, free: 16.17 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.001871/1.484, allocations: 0.99 MB / 1.107 GB, free: 16.16 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002574/1.486, allocations: 1.613 MB / 1.109 GB, free: 15.87 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.03613/1.522, allocations: 14.12 MB / 1.122 GB, free: 12.2 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/1.522, allocations: 0 / 1.122 GB, free: 12.2 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.573e-06/1.522, allocations: 0 / 1.122 GB, free: 12.2 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.568e-05/1.522, allocations: 0 / 1.122 GB, free: 12.2 MB / 0.795 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.01493/1.537, allocations: 5.868 MB / 1.128 GB, free: 8.738 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/1.537, allocations: 8.75 kB / 1.128 GB, free: 8.738 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007941/1.538, allocations: 337.7 kB / 1.128 GB, free: 8.57 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/1.541, allocations: 1.55 MB / 1.13 GB, free: 7.789 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007106/1.541, allocations: 0.6931 MB / 1.131 GB, free: 7.223 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004277/1.542, allocations: 259.5 kB / 1.131 GB, free: 7.215 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006986/1.549, allocations: 4.352 MB / 1.135 GB, free: 6.195 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.842e-05/1.549, allocations: 9.953 kB / 1.135 GB, free: 6.191 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002442/1.549, allocations: 95.8 kB / 1.135 GB, free: 6.191 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002338/1.549, allocations: 208.4 kB / 1.135 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007599/1.557, allocations: 5.081 MB / 1.14 GB, free: 5.309 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02629/1.583, allocations: 15.65 MB / 1.156 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005704/1.589, allocations: 2.776 MB / 1.158 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004042/1.593, allocations: 2.086 MB / 1.16 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009451/1.603, allocations: 9.349 MB / 1.17 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.22e-05/1.603, allocations: 65.48 kB / 1.17 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=309): time 7.114e-06/1.603, allocations: 0 / 1.17 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=314): time 0.03202/1.635, allocations: 12.97 MB / 1.182 GB, free: 0.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/1.635, allocations: 218.3 kB / 1.183 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/1.636, allocations: 1.163 MB / 1.184 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0003527/1.637, allocations: 82.5 kB / 1.184 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006125/1.637, allocations: 0.8318 MB / 1.185 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001082/1.639, allocations: 1.107 MB / 1.186 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009864/1.639, allocations: 0.5075 MB / 1.186 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.64, allocations: 301.1 kB / 1.186 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003698/1.643, allocations: 1.711 MB / 1.188 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004122/1.647, allocations: 1.916 MB / 1.19 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00794/1.655, allocations: 3.673 MB / 1.194 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/1.655, allocations: 4 kB / 1.194 GB, free: 6.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01367/1.669, allocations: 5.267 MB / 1.199 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/1.669, allocations: 7.938 kB / 1.199 GB, free: 0.7695 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.082e-05/1.669, allocations: 8 kB / 1.199 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002877/1.672, allocations: 0.8296 MB / 1.2 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003235/1.675, allocations: 0.6133 MB / 1.2 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02146/1.697, allocations: 14.69 MB / 1.214 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/1.699, allocations: 153.9 kB / 1.215 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004932/1.7, allocations: 178.1 kB / 1.215 GB, free: 15.42 MB / 0.8731 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.001441/1.701, allocations: 0.5477 MB / 1.215 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007065/1.702, allocations: 230.8 kB / 1.216 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01832/1.72, allocations: 8.231 MB / 1.224 GB, free: 6.41 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.816e-05/1.72, allocations: 32 kB / 1.224 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/1.72, allocations: 12 kB / 1.224 GB, free: 6.367 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.141e-05/1.72, allocations: 15.94 kB / 1.224 GB, free: 6.352 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02082/1.741, allocations: 9.292 MB / 1.233 GB, free: 13.05 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.446e-05/1.741, allocations: 12.12 kB / 1.233 GB, free: 13.04 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003195/1.744, allocations: 0.6123 MB / 1.233 GB, free: 12.45 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002845/1.747, allocations: 0.8507 MB / 1.234 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004068/1.748, allocations: 126.9 kB / 1.234 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0212/1.769, allocations: 14.66 MB / 1.249 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/1.769, allocations: 0 / 1.249 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01868/1.787, allocations: 7.717 MB / 1.256 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/1.789, allocations: 0.6885 MB / 1.257 GB, free: 3.414 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004258/1.79, allocations: 61.88 kB / 1.257 GB, free: 3.355 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.791, allocations: 147.4 kB / 1.257 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005686/1.792, allocations: 256.3 kB / 1.257 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003815/1.792, allocations: 171.9 kB / 1.257 GB, free: 2.797 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001385/1.794, allocations: 0.9362 MB / 1.258 GB, free: 1.863 MB / 0.9044 GB Notification: Performance of sort global known variables: time 8e-08/1.794, allocations: 0 / 1.258 GB, free: 1.863 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.009683/1.803, allocations: 3.296 MB / 1.262 GB, free: 14.56 MB / 0.92 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.01249/1.816, allocations: 3.97 MB / 1.265 GB, free: 10.89 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.013/1.829, allocations: 5.471 MB / 1.271 GB, free: 5.309 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/1.829, allocations: 0 / 1.271 GB, free: 5.309 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.007858/1.837, allocations: 3.596 MB / 1.274 GB, free: 1.645 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004452/1.841, allocations: 0.9333 MB / 1.275 GB, free: 0.75 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/1.852, allocations: 6.186 MB / 1.281 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0017/1.854, allocations: 1.816 MB / 1.283 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00346/1.858, allocations: 1.437 MB / 1.284 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009879/1.859, allocations: 299.3 kB / 1.285 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of SimCode: time 6.51e-07/1.859, allocations: 0 / 1.285 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of Templates: time 0.1814/2.04, allocations: 116.1 MB / 1.398 GB, free: 3.406 MB / 1.045 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 -s gbode -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