Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000877/0.000877, allocations: 170.5 kB / 16.11 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205 MB / 221.9 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000709/0.0007092, allocations: 90.36 kB / 269.9 MB, free: 8.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6151/0.6151, allocations: 90.52 MB / 408.3 MB, free: 3.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 8 kB / 484.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.265, allocations: 65.8 MB / 0.5377 GB, free: 34.88 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.9589/1.224, allocations: 427.6 MB / 0.9553 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.07353/1.298, allocations: 82.82 MB / 1.036 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002289/1.3, allocations: 33.03 kB / 1.036 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.004849/1.305, allocations: 2.138 MB / 1.038 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.02053/1.325, allocations: 8.185 MB / 1.046 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.02389/1.349, allocations: 8.833 MB / 1.055 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.005443/1.355, allocations: 5.823 MB / 1.061 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/1.356, allocations: 0.9378 MB / 1.062 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003401/1.359, allocations: 1.742 MB / 1.063 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/1.361, allocations: 1.706 MB / 1.065 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0002465/1.362, allocations: 117.4 kB / 1.065 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04951/1.411, allocations: 32.44 MB / 1.097 GB, free: 2.422 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.001309/1.412, allocations: 0.7211 MB / 1.097 GB, free: 1.719 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.001995/1.414, allocations: 1.235 MB / 1.099 GB, free: 0.5 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.03832/1.453, allocations: 16.85 MB / 1.115 GB, free: 0.7773 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/1.453, allocations: 0 / 1.115 GB, free: 0.7773 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.824e-06/1.453, allocations: 0 / 1.115 GB, free: 0.7773 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.492e-05/1.453, allocations: 0 / 1.115 GB, free: 0.7773 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 604 * Number of variables: 604 Notification: Performance of Generate backend data structure: time 0.01276/1.466, allocations: 5.503 MB / 1.12 GB, free: 11.23 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/1.466, allocations: 16.02 kB / 1.12 GB, free: 11.21 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007103/1.466, allocations: 270.9 kB / 1.121 GB, free: 10.95 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/1.468, allocations: 1.113 MB / 1.122 GB, free: 9.805 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006578/1.469, allocations: 0.7093 MB / 1.123 GB, free: 8.996 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003679/1.469, allocations: 232.4 kB / 1.123 GB, free: 8.773 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006195/1.475, allocations: 3.978 MB / 1.127 GB, free: 4.762 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.75e-05/1.475, allocations: 7.906 kB / 1.127 GB, free: 4.754 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00022/1.476, allocations: 86.02 kB / 1.127 GB, free: 4.676 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002075/1.476, allocations: 202.6 kB / 1.127 GB, free: 4.477 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007231/1.483, allocations: 4.926 MB / 1.132 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01997/1.503, allocations: 16.33 MB / 1.148 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005446/1.508, allocations: 3.049 MB / 1.151 GB, free: 10.92 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003843/1.512, allocations: 2.348 MB / 1.153 GB, free: 8.566 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/1.525, allocations: 14.47 MB / 1.167 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001074/1.525, allocations: 64.83 kB / 1.167 GB, free: 7.211 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=299): time 7.915e-06/1.525, allocations: 0 / 1.167 GB, free: 7.211 MB / 0.7448 GB Notification: Performance of matching and sorting (n=304): time 0.03132/1.557, allocations: 14.04 MB / 1.181 GB, free: 8.887 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/1.557, allocations: 85.72 kB / 1.181 GB, free: 8.789 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007604/1.557, allocations: 0.6297 MB / 1.182 GB, free: 8.148 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0004289/1.558, allocations: 81.38 kB / 1.182 GB, free: 8.066 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003876/1.558, allocations: 0.6508 MB / 1.182 GB, free: 7.406 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008457/1.559, allocations: 1.015 MB / 1.183 GB, free: 6.402 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/1.559, allocations: 50.81 kB / 1.183 GB, free: 6.355 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001636/1.559, allocations: 399 kB / 1.184 GB, free: 5.961 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/1.563, allocations: 1.828 MB / 1.185 GB, free: 4.129 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003705/1.566, allocations: 2.006 MB / 1.187 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007576/1.574, allocations: 3.909 MB / 1.191 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/1.574, allocations: 0 / 1.191 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of matching and sorting (n=318) (initialization): time 0.01259/1.587, allocations: 5.688 MB / 1.197 GB, free: 8.406 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/1.587, allocations: 8 kB / 1.197 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.24e-05/1.587, allocations: 8 kB / 1.197 GB, free: 8.391 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/1.589, allocations: 0.9243 MB / 1.198 GB, free: 7.445 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002914/1.592, allocations: 0.6242 MB / 1.198 GB, free: 6.82 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01718/1.61, allocations: 14.04 MB / 1.212 GB, free: 7.871 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/1.612, allocations: 279.5 kB / 1.212 GB, free: 7.598 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004266/1.612, allocations: 245.3 kB / 1.213 GB, free: 7.359 MB / 0.7917 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 (258): * Single equations (assignments): 231 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 7 * 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.001005/1.613, allocations: 0.503 MB / 1.213 GB, free: 6.852 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005289/1.614, allocations: 162 kB / 1.213 GB, free: 6.691 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2174/1.831, allocations: 6.823 MB / 1.22 GB, free: 409 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001121/1.831, allocations: 19.36 kB / 1.22 GB, free: 409 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.633e-05/1.831, allocations: 8.703 kB / 1.22 GB, free: 409 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004368/1.832, allocations: 221.3 kB / 1.22 GB, free: 408.9 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006663/1.832, allocations: 65.59 kB / 1.22 GB, free: 408.9 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/1.834, allocations: 299.8 kB / 1.22 GB, free: 408.9 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000599/1.835, allocations: 296.1 kB / 1.221 GB, free: 408.9 MB / 0.7917 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0123/1.847, allocations: 5.583 MB / 1.226 GB, free: 408.4 MB / 0.7917 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01178/1.859, allocations: 7.54 MB / 1.234 GB, free: 405.4 MB / 0.7917 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003223/1.862, allocations: 2.252 MB / 1.236 GB, free: 404.5 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0004085/1.863, allocations: 443.6 kB / 1.236 GB, free: 404.4 MB / 0.7917 GB Notification: Performance of Backend: time 3.6e-07/1.863, allocations: 7.75 kB / 1.236 GB, free: 404.4 MB / 0.7917 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {splitterT1_2.outletA.state.X[1], splitterT1_2.outletA.state.X[2]} = $TMP_ThermofluidStream_Examples_SimpleAirCycle_source_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {splitterT1_1.outletA.state.X[1], splitterT1_1.outletA.state.X[2]} = $TMP_ThermofluidStream_Examples_SimpleAirCycle_source1_outlet_Medium_ThermodynamicState7.X Notification: Performance of simCode: created initialization part: time 0.02262/1.885, allocations: 10.83 MB / 1.247 GB, free: 401.8 MB / 0.7917 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {splitterT1_2.outletA.state.X[1], splitterT1_2.outletA.state.X[2]} = $TMP_ThermofluidStream_Examples_SimpleAirCycle_source_outlet_Medium_ThermodynamicState613.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {splitterT1_1.outletA.state.X[1], splitterT1_1.outletA.state.X[2]} = $TMP_ThermofluidStream_Examples_SimpleAirCycle_source1_outlet_Medium_ThermodynamicState718.X Notification: Performance of SimCode: time 0.006313/1.892, allocations: 6.537 MB / 1.253 GB, free: 397.9 MB / 0.7917 GB Notification: Performance of Templates: time 0.1481/2.04, allocations: 150.1 MB / 1.4 GB, free: 257.9 MB / 0.7917 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)