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.0008508/0.0008508, allocations: 97.78 kB / 16.02 MB, free: 76 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.001015/0.001016, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.304/1.304, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6223/0.6223, allocations: 89.64 MB / 381.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003467, allocations: 10.91 kB / 461.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1176, allocations: 68.83 MB / 0.5177 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.982/1.1, allocations: 393.9 MB / 0.9024 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.07078/1.171, allocations: 73.39 MB / 0.974 GB, free: 2.945 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002753/1.173, allocations: 33 kB / 0.9741 GB, free: 2.922 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.005987/1.179, allocations: 2.217 MB / 0.9762 GB, free: 1.445 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.02372/1.203, allocations: 8.223 MB / 0.9843 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01842/1.222, allocations: 6.508 MB / 0.9906 GB, free: 6.754 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007219/1.229, allocations: 6.029 MB / 0.9965 GB, free: 0.8984 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/1.23, allocations: 0.9609 MB / 0.9975 GB, free: 15.91 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003779/1.234, allocations: 1.782 MB / 0.9992 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002706/1.237, allocations: 1.795 MB / 1.001 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003549/1.237, allocations: 128 kB / 1.001 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04654/1.284, allocations: 28.27 MB / 1.029 GB, free: 2.027 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001466/1.285, allocations: 0.7584 MB / 1.029 GB, free: 1.289 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001965/1.287, allocations: 1.358 MB / 1.031 GB, free: 15.94 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.02152/1.309, allocations: 9.562 MB / 1.04 GB, free: 6.977 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/1.309, allocations: 4 kB / 1.04 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.976e-06/1.309, allocations: 0 / 1.04 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 8.1e-05/1.309, allocations: 0 / 1.04 GB, free: 6.973 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.01346/1.322, allocations: 4.997 MB / 1.045 GB, free: 1.926 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/1.322, allocations: 8.031 kB / 1.045 GB, free: 1.918 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008649/1.323, allocations: 296.7 kB / 1.045 GB, free: 1.625 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/1.325, allocations: 1.178 MB / 1.046 GB, free: 432 kB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007419/1.326, allocations: 0.7152 MB / 1.047 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000648/1.327, allocations: 259.2 kB / 1.047 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008159/1.335, allocations: 4.412 MB / 1.052 GB, free: 10.9 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.075e-05/1.335, allocations: 3.938 kB / 1.052 GB, free: 10.9 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003689/1.335, allocations: 99.03 kB / 1.052 GB, free: 10.81 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002694/1.336, allocations: 204.9 kB / 1.052 GB, free: 10.61 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008638/1.344, allocations: 5.196 MB / 1.057 GB, free: 5.398 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02262/1.367, allocations: 15.68 MB / 1.072 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00558/1.373, allocations: 3.117 MB / 1.075 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004196/1.377, allocations: 2.36 MB / 1.078 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007918/1.385, allocations: 9.35 MB / 1.087 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.347e-05/1.385, allocations: 60.95 kB / 1.087 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=309): time 7.925e-06/1.385, allocations: 0 / 1.087 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of matching and sorting (n=314): time 0.2842/1.669, allocations: 13.76 MB / 1.1 GB, free: 334.5 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/1.669, allocations: 82.94 kB / 1.1 GB, free: 334.4 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/1.67, allocations: 0.9352 MB / 1.101 GB, free: 334 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0004256/1.671, allocations: 79.02 kB / 1.101 GB, free: 333.9 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004396/1.671, allocations: 0.7116 MB / 1.102 GB, free: 333.4 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.672, allocations: 1.05 MB / 1.103 GB, free: 332.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004513/1.673, allocations: 209.2 kB / 1.103 GB, free: 332.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 4.04e-05/1.673, allocations: 305.9 kB / 1.104 GB, free: 332.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003393/1.676, allocations: 1.79 MB / 1.105 GB, free: 331.5 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003786/1.68, allocations: 1.972 MB / 1.107 GB, free: 330.8 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007695/1.688, allocations: 3.842 MB / 1.111 GB, free: 329.2 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/1.688, allocations: 1.125 kB / 1.111 GB, free: 329.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01256/1.7, allocations: 5.629 MB / 1.117 GB, free: 327.3 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/1.7, allocations: 5.25 kB / 1.117 GB, free: 327.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.35e-05/1.7, allocations: 7.625 kB / 1.117 GB, free: 327.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/1.703, allocations: 0.9476 MB / 1.117 GB, free: 327.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/1.706, allocations: 0.6334 MB / 1.118 GB, free: 327 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/1.721, allocations: 14.1 MB / 1.132 GB, free: 316.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/1.724, allocations: 272 kB / 1.132 GB, free: 316 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004365/1.724, allocations: 189.7 kB / 1.132 GB, free: 316 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.001141/1.725, allocations: 0.5226 MB / 1.133 GB, free: 315.6 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003917/1.725, allocations: 188.2 kB / 1.133 GB, free: 315.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/1.74, allocations: 8.624 MB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.347e-05/1.74, allocations: 37.34 kB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/1.74, allocations: 7.938 kB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.351e-05/1.74, allocations: 15.94 kB / 1.141 GB, free: 312.4 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/1.756, allocations: 9.636 MB / 1.151 GB, free: 306.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-05/1.756, allocations: 10.91 kB / 1.151 GB, free: 306.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002563/1.759, allocations: 0.6274 MB / 1.151 GB, free: 306.6 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002353/1.761, allocations: 0.9559 MB / 1.152 GB, free: 306.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002588/1.761, allocations: 126.2 kB / 1.153 GB, free: 306.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/1.776, allocations: 14.09 MB / 1.166 GB, free: 291.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/1.776, allocations: 0 / 1.166 GB, free: 291.8 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01473/1.791, allocations: 8.13 MB / 1.174 GB, free: 283.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/1.792, allocations: 0.6817 MB / 1.175 GB, free: 282.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003794/1.793, allocations: 58.42 kB / 1.175 GB, free: 282.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/1.794, allocations: 252.9 kB / 1.175 GB, free: 282.5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004301/1.795, allocations: 255.4 kB / 1.175 GB, free: 282.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/1.795, allocations: 181.4 kB / 1.176 GB, free: 282.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0008216/1.796, allocations: 0.7828 MB / 1.176 GB, free: 281.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/1.796, allocations: 0 / 1.176 GB, free: 281.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.008144/1.804, allocations: 3.24 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.01078/1.815, allocations: 3.977 MB / 1.183 GB, free: 275.3 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01049/1.825, allocations: 5.974 MB / 1.189 GB, free: 269.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/1.825, allocations: 0 / 1.189 GB, free: 269.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.006346/1.832, allocations: 3.958 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.00461/1.836, allocations: 0.8629 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.008795/1.845, allocations: 7.331 MB / 1.201 GB, free: 257 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/1.846, allocations: 1.733 MB / 1.203 GB, free: 255.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/1.848, allocations: 351.2 kB / 1.203 GB, free: 254.8 MB / 0.7325 GB Notification: Performance of SimCode: time 9.22e-07/1.848, allocations: 0 / 1.203 GB, free: 254.8 MB / 0.7325 GB Notification: Performance of Templates: time 0.126/1.974, allocations: 148.4 MB / 1.348 GB, free: 106.4 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