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.0009527/0.0009528, allocations: 92.55 kB / 16.02 MB, free: 80 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.001074/0.001074, allocations: 175.8 kB / 16.92 MB, free: 6.652 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.306/1.306, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6349/0.6349, allocations: 89.64 MB / 381.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.000366, allocations: 10.97 kB / 461.3 MB, free: 24.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1244, allocations: 68.83 MB / 0.5177 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 1.007/1.131, allocations: 393.9 MB / 0.9024 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.07781/1.209, allocations: 73.39 MB / 0.974 GB, free: 2.941 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00268/1.212, allocations: 31.78 kB / 0.9741 GB, free: 2.918 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.005607/1.217, allocations: 2.216 MB / 0.9762 GB, free: 1.438 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.02422/1.242, allocations: 8.232 MB / 0.9843 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01826/1.26, allocations: 6.501 MB / 0.9906 GB, free: 6.742 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.006988/1.267, allocations: 6.027 MB / 0.9965 GB, free: 0.875 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/1.269, allocations: 0.9666 MB / 0.9975 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003724/1.273, allocations: 1.787 MB / 0.9992 GB, free: 14.19 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002919/1.276, allocations: 1.791 MB / 1.001 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006757/1.276, allocations: 128 kB / 1.001 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04695/1.323, allocations: 28.27 MB / 1.029 GB, free: 2 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001425/1.325, allocations: 0.7548 MB / 1.029 GB, free: 1.266 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002845/1.328, allocations: 1.359 MB / 1.031 GB, free: 15.92 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.02194/1.35, allocations: 9.57 MB / 1.04 GB, free: 6.949 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.35, allocations: 4 kB / 1.04 GB, free: 6.945 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.594e-06/1.35, allocations: 0 / 1.04 GB, free: 6.945 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001459/1.35, allocations: 0 / 1.04 GB, free: 6.945 MB / 0.6856 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.0138/1.364, allocations: 4.988 MB / 1.045 GB, free: 1.906 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/1.364, allocations: 8.031 kB / 1.045 GB, free: 1.898 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000924/1.365, allocations: 296.7 kB / 1.045 GB, free: 1.605 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/1.367, allocations: 1.185 MB / 1.046 GB, free: 404 kB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007802/1.368, allocations: 0.7127 MB / 1.047 GB, free: 15.58 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008337/1.369, allocations: 265.6 kB / 1.047 GB, free: 15.33 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009249/1.378, allocations: 4.403 MB / 1.052 GB, free: 10.88 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.862e-05/1.378, allocations: 3.938 kB / 1.052 GB, free: 10.88 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004838/1.379, allocations: 98.56 kB / 1.052 GB, free: 10.79 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002886/1.379, allocations: 204.9 kB / 1.052 GB, free: 10.58 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009628/1.388, allocations: 5.196 MB / 1.057 GB, free: 5.375 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02573/1.414, allocations: 15.69 MB / 1.072 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005939/1.42, allocations: 3.109 MB / 1.075 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004473/1.425, allocations: 2.364 MB / 1.078 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00771/1.432, allocations: 9.358 MB / 1.087 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.527e-05/1.433, allocations: 60.95 kB / 1.087 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=309): time 8.737e-06/1.433, allocations: 0 / 1.087 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=314): time 0.2984/1.731, allocations: 13.74 MB / 1.1 GB, free: 334.5 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/1.731, allocations: 86.66 kB / 1.1 GB, free: 334.5 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/1.732, allocations: 0.9426 MB / 1.101 GB, free: 334.1 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0005337/1.733, allocations: 79.34 kB / 1.101 GB, free: 334 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004699/1.733, allocations: 0.7095 MB / 1.102 GB, free: 333.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.735, allocations: 1.058 MB / 1.103 GB, free: 332.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005381/1.735, allocations: 203.5 kB / 1.103 GB, free: 332.6 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 4.538e-05/1.735, allocations: 305.1 kB / 1.104 GB, free: 332.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003662/1.739, allocations: 1.795 MB / 1.105 GB, free: 331.6 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004178/1.743, allocations: 1.968 MB / 1.107 GB, free: 330.9 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00866/1.752, allocations: 3.842 MB / 1.111 GB, free: 329.3 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/1.752, allocations: 0 / 1.111 GB, free: 329.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01468/1.767, allocations: 5.627 MB / 1.117 GB, free: 327.4 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/1.767, allocations: 5.562 kB / 1.117 GB, free: 327.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-05/1.767, allocations: 15.72 kB / 1.117 GB, free: 327.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002602/1.769, allocations: 0.9357 MB / 1.117 GB, free: 327.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003096/1.772, allocations: 0.6308 MB / 1.118 GB, free: 327.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/1.788, allocations: 14.1 MB / 1.132 GB, free: 316.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/1.791, allocations: 269.3 kB / 1.132 GB, free: 316.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007754/1.792, allocations: 181.3 kB / 1.132 GB, free: 316.1 MB / 0.7325 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.001786/1.793, allocations: 0.5243 MB / 1.133 GB, free: 315.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007165/1.794, allocations: 188.3 kB / 1.133 GB, free: 315.6 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/1.81, allocations: 8.633 MB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.543e-05/1.81, allocations: 31.53 kB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.934e-05/1.81, allocations: 7.875 kB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.15e-05/1.81, allocations: 19.88 kB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0199/1.83, allocations: 9.636 MB / 1.151 GB, free: 306.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-05/1.83, allocations: 14.8 kB / 1.151 GB, free: 306.9 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002937/1.833, allocations: 0.6271 MB / 1.151 GB, free: 306.7 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002649/1.836, allocations: 0.9552 MB / 1.152 GB, free: 306.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008503/1.837, allocations: 129.3 kB / 1.153 GB, free: 306.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01542/1.852, allocations: 14.08 MB / 1.166 GB, free: 291.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.852, allocations: 4 kB / 1.166 GB, free: 291.7 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01691/1.869, allocations: 8.121 MB / 1.174 GB, free: 283.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/1.871, allocations: 0.6778 MB / 1.175 GB, free: 282.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008424/1.872, allocations: 62.03 kB / 1.175 GB, free: 282.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.874, allocations: 254.2 kB / 1.175 GB, free: 282.5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007196/1.875, allocations: 254.2 kB / 1.175 GB, free: 282.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005591/1.876, allocations: 177.4 kB / 1.176 GB, free: 282.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00104/1.877, allocations: 0.7944 MB / 1.176 GB, free: 281.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/1.877, allocations: 0 / 1.176 GB, free: 281.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.009281/1.886, allocations: 3.23 MB / 1.18 GB, free: 278.5 MB / 0.7325 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.01171/1.898, allocations: 3.981 MB / 1.183 GB, free: 275.3 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01165/1.91, allocations: 5.977 MB / 1.189 GB, free: 269.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.91, allocations: 4 kB / 1.189 GB, free: 269.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00719/1.917, allocations: 3.954 MB / 1.193 GB, free: 265.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005465/1.922, allocations: 0.8587 MB / 1.194 GB, free: 264.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/1.933, allocations: 7.336 MB / 1.201 GB, free: 256.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/1.934, allocations: 1.737 MB / 1.203 GB, free: 255.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/1.936, allocations: 351.2 kB / 1.203 GB, free: 254.8 MB / 0.7325 GB Notification: Performance of SimCode: time 8.72e-07/1.936, allocations: 0 / 1.203 GB, free: 254.8 MB / 0.7325 GB Notification: Performance of Templates: time 0.1306/2.066, allocations: 148.4 MB / 1.348 GB, free: 106.3 MB / 0.7325 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