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.001577/0.001581, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001983/0.001983, allocations: 191.5 kB / 16.14 MB, free: 6.699 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.501/1.501, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6993/0.6993, allocations: 91.2 MB / 381.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 81.72 kB / 459.6 MB, free: 23.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.187, allocations: 67.7 MB / 0.515 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.198/1.385, allocations: 400.3 MB / 0.9059 GB, free: 408 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.07088/1.456, allocations: 74.65 MB / 0.9788 GB, free: 5.715 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003243/1.459, allocations: 76.25 kB / 0.9788 GB, free: 5.672 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.006337/1.466, allocations: 2.23 MB / 0.981 GB, free: 4.188 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02324/1.489, allocations: 8.275 MB / 0.9891 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.02262/1.512, allocations: 6.502 MB / 0.9954 GB, free: 9.461 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009236/1.521, allocations: 6.175 MB / 1.001 GB, free: 4.262 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/1.523, allocations: 0.9977 MB / 1.002 GB, free: 3.242 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004257/1.527, allocations: 2.015 MB / 1.004 GB, free: 1.48 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002788/1.53, allocations: 2.009 MB / 1.006 GB, free: 15.66 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0005145/1.53, allocations: 204 kB / 1.007 GB, free: 15.46 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04899/1.579, allocations: 28.35 MB / 1.034 GB, free: 5.027 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.002214/1.581, allocations: 0.8676 MB / 1.035 GB, free: 4.18 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.004725/1.586, allocations: 1.518 MB / 1.037 GB, free: 2.676 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.04273/1.629, allocations: 14.82 MB / 1.051 GB, free: 4.816 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 9.979e-06/1.629, allocations: 4 kB / 1.051 GB, free: 4.812 MB / 0.7012 GB Notification: Performance of FrontEnd: time 3.036e-06/1.629, allocations: 0 / 1.051 GB, free: 4.812 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0002267/1.629, allocations: 0 / 1.051 GB, free: 4.812 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.01742/1.647, allocations: 5.65 MB / 1.057 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/1.647, allocations: 20.02 kB / 1.057 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001256/1.648, allocations: 316.3 kB / 1.057 GB, free: 14.81 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/1.651, allocations: 1.438 MB / 1.058 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007178/1.652, allocations: 0.6984 MB / 1.059 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000709/1.653, allocations: 261.2 kB / 1.059 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009234/1.662, allocations: 4.325 MB / 1.063 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.268e-05/1.662, allocations: 0 / 1.063 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004268/1.662, allocations: 98.33 kB / 1.064 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002662/1.663, allocations: 208.9 kB / 1.064 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009017/1.672, allocations: 5.082 MB / 1.069 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02629/1.698, allocations: 15.68 MB / 1.084 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006183/1.704, allocations: 3.004 MB / 1.087 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004369/1.709, allocations: 2.278 MB / 1.089 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008581/1.717, allocations: 9.34 MB / 1.098 GB, free: 1.203 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001012/1.717, allocations: 64.95 kB / 1.098 GB, free: 1.129 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=309): time 8.256e-06/1.717, allocations: 0 / 1.098 GB, free: 1.129 MB / 0.7481 GB Notification: Performance of matching and sorting (n=314): time 0.03478/1.752, allocations: 12.96 MB / 1.111 GB, free: 3.879 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/1.752, allocations: 85.84 kB / 1.111 GB, free: 3.781 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/1.754, allocations: 1.142 MB / 1.112 GB, free: 2.625 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0006636/1.755, allocations: 73.7 kB / 1.112 GB, free: 2.547 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006038/1.755, allocations: 0.8172 MB / 1.113 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.757, allocations: 1.047 MB / 1.114 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/1.758, allocations: 0.509 MB / 1.115 GB, free: 144 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.2756/2.034, allocations: 304.9 kB / 1.115 GB, free: 364.5 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00463/2.039, allocations: 1.704 MB / 1.117 GB, free: 364.5 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004502/2.043, allocations: 1.892 MB / 1.118 GB, free: 364.4 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008796/2.052, allocations: 3.665 MB / 1.122 GB, free: 362.8 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/2.052, allocations: 0.7812 kB / 1.122 GB, free: 362.8 MB / 0.7637 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01939/2.071, allocations: 5.273 MB / 1.127 GB, free: 361 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/2.071, allocations: 13.95 kB / 1.127 GB, free: 361 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.153e-05/2.072, allocations: 13.05 kB / 1.127 GB, free: 361 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003825/2.075, allocations: 0.8311 MB / 1.128 GB, free: 360.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004499/2.08, allocations: 0.6142 MB / 1.129 GB, free: 360.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02344/2.103, allocations: 13.53 MB / 1.142 GB, free: 350 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00317/2.107, allocations: 230.1 kB / 1.142 GB, free: 349.9 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009915/2.108, allocations: 181.9 kB / 1.142 GB, free: 349.9 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.002079/2.11, allocations: 0.5407 MB / 1.143 GB, free: 349.5 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/2.111, allocations: 212.1 kB / 1.143 GB, free: 349.5 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/2.128, allocations: 8.271 MB / 1.151 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.276e-05/2.128, allocations: 31.75 kB / 1.151 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-05/2.128, allocations: 11.91 kB / 1.151 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.229e-05/2.128, allocations: 14.72 kB / 1.151 GB, free: 346.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01912/2.147, allocations: 9.318 MB / 1.16 GB, free: 342.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.298e-05/2.147, allocations: 12.84 kB / 1.16 GB, free: 342.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003012/2.15, allocations: 0.6203 MB / 1.161 GB, free: 342.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/2.153, allocations: 0.8422 MB / 1.162 GB, free: 342.2 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000588/2.153, allocations: 131.2 kB / 1.162 GB, free: 342.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/2.168, allocations: 13.52 MB / 1.175 GB, free: 330.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/2.168, allocations: 3.281 kB / 1.175 GB, free: 330.2 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/2.183, allocations: 7.724 MB / 1.182 GB, free: 326.1 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/2.184, allocations: 0.6729 MB / 1.183 GB, free: 325.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005469/2.185, allocations: 59.44 kB / 1.183 GB, free: 325.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/2.187, allocations: 211.2 kB / 1.183 GB, free: 325.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005515/2.187, allocations: 258.5 kB / 1.184 GB, free: 325.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000391/2.188, allocations: 179.5 kB / 1.184 GB, free: 325.2 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001216/2.189, allocations: 0.919 MB / 1.185 GB, free: 324.7 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/2.189, allocations: 0 / 1.185 GB, free: 324.7 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.008092/2.197, allocations: 3.246 MB / 1.188 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.01183/2.209, allocations: 3.925 MB / 1.192 GB, free: 321.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01056/2.22, allocations: 5.708 MB / 1.197 GB, free: 316 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/2.22, allocations: 3.938 kB / 1.197 GB, free: 316 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.006598/2.226, allocations: 3.759 MB / 1.201 GB, free: 312.1 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/2.231, allocations: 0.8722 MB / 1.202 GB, free: 311.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009717/2.241, allocations: 7.229 MB / 1.209 GB, free: 304.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/2.242, allocations: 1.804 MB / 1.211 GB, free: 302.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003429/2.245, allocations: 1.43 MB / 1.212 GB, free: 300.9 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/2.246, allocations: 299.3 kB / 1.212 GB, free: 300.6 MB / 0.7637 GB Notification: Performance of SimCode: time 1.232e-06/2.246, allocations: 0 / 1.212 GB, free: 300.6 MB / 0.7637 GB Notification: Performance of Templates: time 0.1303/2.377, allocations: 112.7 MB / 1.322 GB, free: 188.1 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