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.001399/0.001399, allocations: 104.1 kB / 16.4 MB, free: 6.465 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.001408/0.001408, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.681/0.681, allocations: 91.18 MB / 382.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 83.81 kB / 0.5175 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3249, allocations: 67.69 MB / 0.5836 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.7188/1.044, allocations: 395.5 MB / 0.9698 GB, free: 12.94 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.5392/1.583, allocations: 72.73 MB / 1.041 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002599/1.586, allocations: 66.16 kB / 1.041 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.005961/1.592, allocations: 2.362 MB / 1.043 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02497/1.617, allocations: 9.459 MB / 1.052 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01942/1.636, allocations: 7.357 MB / 1.06 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.007097/1.643, allocations: 4.261 MB / 1.064 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002694/1.646, allocations: 1.117 MB / 1.065 GB, free: 16.08 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006331/1.652, allocations: 2.24 MB / 1.067 GB, free: 16.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004542/1.657, allocations: 1.963 MB / 1.069 GB, free: 16.07 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001685/1.659, allocations: 306.9 kB / 1.069 GB, free: 16.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0494/1.708, allocations: 25.38 MB / 1.094 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002043/1.71, allocations: 0.976 MB / 1.095 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.004558/1.715, allocations: 1.604 MB / 1.097 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.04192/1.757, allocations: 14.05 MB / 1.11 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/1.757, allocations: 4 kB / 1.11 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.024e-06/1.757, allocations: 3.938 kB / 1.11 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001654/1.757, allocations: 0 / 1.11 GB, free: 10.98 MB / 0.7794 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.01794/1.775, allocations: 5.653 MB / 1.116 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/1.775, allocations: 8.375 kB / 1.116 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/1.777, allocations: 320.2 kB / 1.116 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004004/1.781, allocations: 1.526 MB / 1.118 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009043/1.782, allocations: 0.6939 MB / 1.118 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/1.783, allocations: 269.1 kB / 1.119 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009275/1.792, allocations: 4.343 MB / 1.123 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.617e-05/1.792, allocations: 4 kB / 1.123 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/1.792, allocations: 99.12 kB / 1.123 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002411/1.793, allocations: 203.6 kB / 1.123 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008176/1.801, allocations: 5.089 MB / 1.128 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02355/1.824, allocations: 15.61 MB / 1.143 GB, free: 4.664 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005559/1.83, allocations: 3.006 MB / 1.146 GB, free: 2.906 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004024/1.834, allocations: 2.275 MB / 1.149 GB, free: 1.512 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007446/1.842, allocations: 9.35 MB / 1.158 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.387e-05/1.842, allocations: 64.52 kB / 1.158 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=309): time 7.184e-06/1.842, allocations: 2.625 kB / 1.158 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=314): time 0.03063/1.872, allocations: 12.95 MB / 1.17 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/1.873, allocations: 212.6 kB / 1.171 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/1.874, allocations: 1.146 MB / 1.172 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0006254/1.875, allocations: 76.2 kB / 1.172 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005421/1.875, allocations: 0.8133 MB / 1.173 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009744/1.876, allocations: 1.051 MB / 1.174 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008429/1.877, allocations: 0.5035 MB / 1.174 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001054/1.877, allocations: 309.1 kB / 1.174 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00352/1.881, allocations: 1.705 MB / 1.176 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003625/1.884, allocations: 1.921 MB / 1.178 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00719/1.892, allocations: 3.669 MB / 1.181 GB, free: 196 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/1.892, allocations: 0 / 1.181 GB, free: 196 kB / 0.8262 GB Notification: Performance of matching and sorting (n=330) (initialization): time 0.01255/1.904, allocations: 5.28 MB / 1.187 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/1.904, allocations: 4 kB / 1.187 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.988e-05/1.904, allocations: 8 kB / 1.187 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/1.907, allocations: 0.8357 MB / 1.187 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/1.91, allocations: 0.6196 MB / 1.188 GB, free: 9.422 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/1.928, allocations: 14.68 MB / 1.202 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/1.93, allocations: 145.1 kB / 1.203 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/1.931, allocations: 185.4 kB / 1.203 GB, free: 9.527 MB / 0.8575 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.00141/1.932, allocations: 0.5447 MB / 1.203 GB, free: 9 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007083/1.933, allocations: 213.4 kB / 1.203 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01589/1.949, allocations: 8.25 MB / 1.212 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001092/1.949, allocations: 32 kB / 1.212 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/1.949, allocations: 8 kB / 1.212 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-05/1.949, allocations: 15.94 kB / 1.212 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/1.969, allocations: 9.31 MB / 1.221 GB, free: 7.148 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.25e-05/1.969, allocations: 12 kB / 1.221 GB, free: 7.137 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003173/1.972, allocations: 0.6093 MB / 1.221 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002652/1.975, allocations: 0.8578 MB / 1.222 GB, free: 5.676 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007347/1.976, allocations: 123.3 kB / 1.222 GB, free: 5.559 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/1.993, allocations: 14.66 MB / 1.237 GB, free: 6.008 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.993, allocations: 0 / 1.237 GB, free: 6.008 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01711/2.011, allocations: 7.724 MB / 1.244 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/2.012, allocations: 0.6658 MB / 1.245 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005558/2.013, allocations: 69.33 kB / 1.245 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/2.015, allocations: 148.6 kB / 1.245 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005359/2.015, allocations: 249.4 kB / 1.245 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003768/2.016, allocations: 175.9 kB / 1.245 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001269/2.017, allocations: 0.9198 MB / 1.246 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.9e-07/2.017, allocations: 4 kB / 1.246 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0102/2.027, allocations: 3.251 MB / 1.249 GB, free: 8.727 MB / 0.9044 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.01258/2.04, allocations: 3.923 MB / 1.253 GB, free: 5.113 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01233/2.052, allocations: 5.719 MB / 1.259 GB, free: 15.28 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/2.052, allocations: 0 / 1.259 GB, free: 15.28 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.007763/2.06, allocations: 3.768 MB / 1.263 GB, free: 11.45 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004702/2.065, allocations: 0.91 MB / 1.263 GB, free: 10.57 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/2.075, allocations: 6.201 MB / 1.269 GB, free: 4.359 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001396/2.077, allocations: 1.812 MB / 1.271 GB, free: 2.508 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001802/2.079, allocations: 363.2 kB / 1.272 GB, free: 2.152 MB / 0.92 GB Notification: Performance of SimCode: time 1.473e-06/2.079, allocations: 0 / 1.272 GB, free: 2.152 MB / 0.92 GB Notification: Performance of Templates: time 0.4524/2.531, allocations: 156.5 MB / 1.424 GB, free: 0.5649 GB / 1.045 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