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.001356/0.001356, allocations: 108 kB / 15.6 MB, free: 132 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.001181/0.001182, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7336/0.7336, allocations: 91.2 MB / 381.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 77.69 kB / 460.3 MB, free: 23.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1602, allocations: 67.7 MB / 0.5156 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.148/1.308, allocations: 395.5 MB / 0.9019 GB, free: 212 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.08298/1.391, allocations: 72.74 MB / 0.9729 GB, free: 8.465 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003779/1.395, allocations: 67.19 kB / 0.9729 GB, free: 8.426 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.007205/1.402, allocations: 2.372 MB / 0.9753 GB, free: 6.953 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.0296/1.432, allocations: 9.46 MB / 0.9845 GB, free: 396 kB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.02052/1.453, allocations: 7.355 MB / 0.9917 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.00672/1.459, allocations: 4.249 MB / 0.9958 GB, free: 7.711 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001807/1.461, allocations: 1.12 MB / 0.9969 GB, free: 6.578 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00474/1.466, allocations: 2.197 MB / 0.9991 GB, free: 4.672 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003037/1.469, allocations: 1.968 MB / 1.001 GB, free: 2.887 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006286/1.47, allocations: 308 kB / 1.001 GB, free: 2.586 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0517/1.521, allocations: 25.33 MB / 1.026 GB, free: 11.18 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001941/1.523, allocations: 0.9714 MB / 1.027 GB, free: 10.23 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002699/1.526, allocations: 1.611 MB / 1.029 GB, free: 8.633 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0421/1.568, allocations: 13.96 MB / 1.042 GB, free: 11.48 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/1.568, allocations: 8 kB / 1.042 GB, free: 11.47 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.505e-06/1.568, allocations: 0 / 1.042 GB, free: 11.47 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 6.511e-05/1.568, allocations: 0 / 1.042 GB, free: 11.47 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.0172/1.586, allocations: 5.652 MB / 1.048 GB, free: 5.801 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/1.586, allocations: 16.03 kB / 1.048 GB, free: 5.785 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/1.587, allocations: 316.3 kB / 1.048 GB, free: 5.473 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003164/1.59, allocations: 1.435 MB / 1.049 GB, free: 4.016 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006794/1.591, allocations: 0.6978 MB / 1.05 GB, free: 3.215 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004359/1.591, allocations: 265.1 kB / 1.05 GB, free: 2.965 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008268/1.6, allocations: 4.328 MB / 1.055 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.478e-05/1.6, allocations: 0 / 1.055 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/1.6, allocations: 98.02 kB / 1.055 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002542/1.6, allocations: 208.9 kB / 1.055 GB, free: 14.29 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008927/1.609, allocations: 5.079 MB / 1.06 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02493/1.634, allocations: 15.72 MB / 1.075 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005951/1.64, allocations: 3.021 MB / 1.078 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004289/1.644, allocations: 2.275 MB / 1.08 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008642/1.653, allocations: 9.348 MB / 1.089 GB, free: 7.824 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.187e-05/1.653, allocations: 64.95 kB / 1.09 GB, free: 7.75 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 8.265e-06/1.653, allocations: 0 / 1.09 GB, free: 7.75 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03292/1.686, allocations: 12.95 MB / 1.102 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/1.686, allocations: 85.84 kB / 1.102 GB, free: 10.43 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/1.688, allocations: 1.142 MB / 1.103 GB, free: 9.273 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.000348/1.688, allocations: 77.7 kB / 1.103 GB, free: 9.191 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005645/1.689, allocations: 0.8094 MB / 1.104 GB, free: 8.371 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009272/1.69, allocations: 1.046 MB / 1.105 GB, free: 7.336 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008537/1.691, allocations: 0.5074 MB / 1.106 GB, free: 6.828 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001126/1.691, allocations: 305.1 kB / 1.106 GB, free: 6.527 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003386/1.694, allocations: 1.715 MB / 1.108 GB, free: 4.809 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003748/1.698, allocations: 1.882 MB / 1.11 GB, free: 2.91 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3356/2.034, allocations: 3.665 MB / 1.113 GB, free: 362.8 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.827e-05/2.034, allocations: 0.7812 kB / 1.113 GB, free: 362.8 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01536/2.049, allocations: 5.282 MB / 1.118 GB, free: 362.1 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/2.049, allocations: 5.031 kB / 1.118 GB, free: 362.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.995e-05/2.049, allocations: 8.641 kB / 1.118 GB, free: 362.1 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/2.052, allocations: 0.8389 MB / 1.119 GB, free: 361.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003105/2.055, allocations: 0.6183 MB / 1.12 GB, free: 361.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01682/2.072, allocations: 14.67 MB / 1.134 GB, free: 350.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/2.075, allocations: 143.6 kB / 1.134 GB, free: 350.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/2.076, allocations: 184.8 kB / 1.134 GB, free: 350 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.002025/2.078, allocations: 0.5474 MB / 1.135 GB, free: 349.7 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001169/2.079, allocations: 217.6 kB / 1.135 GB, free: 349.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02596/2.105, allocations: 8.256 MB / 1.143 GB, free: 346.8 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001555/2.105, allocations: 39.67 kB / 1.143 GB, free: 346.8 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.16e-05/2.105, allocations: 11.91 kB / 1.143 GB, free: 346.7 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.299e-05/2.105, allocations: 16.23 kB / 1.143 GB, free: 346.7 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02785/2.133, allocations: 9.31 MB / 1.152 GB, free: 343.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-05/2.133, allocations: 11.84 kB / 1.152 GB, free: 343.1 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004616/2.138, allocations: 0.618 MB / 1.153 GB, free: 343 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003645/2.142, allocations: 0.8512 MB / 1.154 GB, free: 342.8 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007629/2.142, allocations: 124.2 kB / 1.154 GB, free: 342.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02273/2.165, allocations: 14.68 MB / 1.168 GB, free: 330.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/2.165, allocations: 0 / 1.168 GB, free: 330.2 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0219/2.187, allocations: 7.729 MB / 1.176 GB, free: 326.1 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/2.189, allocations: 0.6677 MB / 1.176 GB, free: 325.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000567/2.19, allocations: 63.56 kB / 1.177 GB, free: 325.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/2.191, allocations: 150.3 kB / 1.177 GB, free: 325.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005352/2.192, allocations: 259.9 kB / 1.177 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003663/2.192, allocations: 179.7 kB / 1.177 GB, free: 325.2 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001192/2.194, allocations: 0.9195 MB / 1.178 GB, free: 324.7 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/2.194, allocations: 0 / 1.178 GB, free: 324.7 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01028/2.204, allocations: 3.246 MB / 1.181 GB, free: 324.1 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.01328/2.217, allocations: 3.923 MB / 1.185 GB, free: 323.2 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01829/2.236, allocations: 6.87 MB / 1.192 GB, free: 318.6 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/2.236, allocations: 4 kB / 1.192 GB, free: 318.6 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.006745/2.242, allocations: 3.764 MB / 1.195 GB, free: 314.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004447/2.247, allocations: 0.924 MB / 1.196 GB, free: 313.9 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009396/2.256, allocations: 6.142 MB / 1.202 GB, free: 307.9 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/2.257, allocations: 1.812 MB / 1.204 GB, free: 306 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.00334/2.261, allocations: 1.433 MB / 1.205 GB, free: 304.6 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007652/2.262, allocations: 299.3 kB / 1.206 GB, free: 304.4 MB / 0.7637 GB Notification: Performance of SimCode: time 6.71e-07/2.262, allocations: 0 / 1.206 GB, free: 304.4 MB / 0.7637 GB Notification: Performance of Templates: time 0.1378/2.399, allocations: 114.9 MB / 1.318 GB, free: 189.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.SimpleAirCycle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches