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: "" <> buildModelFMU(ThermofluidStream.Examples.SimpleAirCycle,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_SimpleAirCycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.SimpleAirCycle,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_SimpleAirCycle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007718/0.0007718, allocations: 173.3 kB / 15.45 MB, free: 5.855 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.076/1.076, allocations: 205 MB / 221.2 MB, free: 1.832 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006072/0.0006072, allocations: 102.3 kB / 269.2 MB, free: 1.77 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.4536/0.4536, allocations: 90.52 MB / 407.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002597, allocations: 8 kB / 484.3 MB, free: 3.473 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08689, allocations: 65.82 MB / 0.5372 GB, free: 1.582 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.SimpleAirCycle): time 0.7022/0.7891, allocations: 427.6 MB / 0.9548 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.3624/1.152, allocations: 82.79 MB / 1.036 GB, free: 1.133 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/1.154, allocations: 28.19 kB / 1.036 GB, free: 1.133 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.004323/1.158, allocations: 2.136 MB / 1.038 GB, free: 1.125 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.01767/1.176, allocations: 8.184 MB / 1.046 GB, free: 1.035 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.01926/1.195, allocations: 8.828 MB / 1.054 GB, free: 0.8828 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.005162/1.2, allocations: 5.817 MB / 1.06 GB, free: 0.8789 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009464/1.201, allocations: 0.9369 MB / 1.061 GB, free: 0.6758 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002453/1.203, allocations: 1.744 MB / 1.063 GB, free: 0.6602 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/1.205, allocations: 1.702 MB / 1.064 GB, free: 0.6602 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0002097/1.205, allocations: 117.5 kB / 1.064 GB, free: 0.6602 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04599/1.251, allocations: 32.69 MB / 1.096 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001099/1.252, allocations: 0.7204 MB / 1.097 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001595/1.254, allocations: 1.234 MB / 1.098 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.03168/1.286, allocations: 16.85 MB / 1.115 GB, free: 3.766 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/1.286, allocations: 0 / 1.115 GB, free: 3.766 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.593e-06/1.286, allocations: 0 / 1.115 GB, free: 3.766 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.957e-05/1.286, allocations: 4 kB / 1.115 GB, free: 3.762 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.01108/1.297, allocations: 5.508 MB / 1.12 GB, free: 14.53 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/1.297, allocations: 8.031 kB / 1.12 GB, free: 14.52 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004056/1.297, allocations: 340.6 kB / 1.12 GB, free: 14.33 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/1.298, allocations: 269.9 kB / 1.121 GB, free: 14.06 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/1.299, allocations: 1.126 MB / 1.122 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005239/1.3, allocations: 0.698 MB / 1.123 GB, free: 12.51 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003267/1.3, allocations: 243.8 kB / 1.123 GB, free: 12.35 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005212/1.305, allocations: 3.971 MB / 1.127 GB, free: 9.605 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/1.305, allocations: 8 kB / 1.127 GB, free: 9.598 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001904/1.306, allocations: 88.03 kB / 1.127 GB, free: 9.582 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/1.306, allocations: 206.8 kB / 1.127 GB, free: 9.41 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006189/1.312, allocations: 4.919 MB / 1.132 GB, free: 6.02 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0158/1.328, allocations: 16.33 MB / 1.148 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00436/1.332, allocations: 3.046 MB / 1.151 GB, free: 6.539 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003144/1.335, allocations: 2.35 MB / 1.153 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009679/1.345, allocations: 14.47 MB / 1.167 GB, free: 4.207 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.734e-05/1.345, allocations: 67.44 kB / 1.167 GB, free: 4.148 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=299): time 4.899e-06/1.345, allocations: 0 / 1.167 GB, free: 4.148 MB / 0.7292 GB Notification: Performance of matching and sorting (n=304): time 0.02469/1.37, allocations: 14.04 MB / 1.181 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/1.37, allocations: 87.81 kB / 1.181 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/1.37, allocations: 0.6336 MB / 1.182 GB, free: 5.828 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001843/1.371, allocations: 80.83 kB / 1.182 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/1.371, allocations: 0.6546 MB / 1.182 GB, free: 5.082 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006313/1.372, allocations: 1.009 MB / 1.183 GB, free: 4.082 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/1.372, allocations: 57.8 kB / 1.183 GB, free: 4.027 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001461/1.372, allocations: 399 kB / 1.184 GB, free: 3.633 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00282/1.375, allocations: 1.824 MB / 1.185 GB, free: 1.805 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00304/1.378, allocations: 1.999 MB / 1.187 GB, free: 15.79 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006158/1.384, allocations: 3.911 MB / 1.191 GB, free: 11.84 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/1.384, allocations: 0 / 1.191 GB, free: 11.84 MB / 0.7605 GB Notification: Performance of matching and sorting (n=318) (initialization): time 0.01057/1.395, allocations: 5.684 MB / 1.197 GB, free: 6.137 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/1.395, allocations: 4 kB / 1.197 GB, free: 6.133 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-05/1.395, allocations: 11.98 kB / 1.197 GB, free: 6.121 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002172/1.397, allocations: 0.9216 MB / 1.198 GB, free: 5.18 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/1.399, allocations: 0.6268 MB / 1.198 GB, free: 4.574 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01451/1.413, allocations: 14.03 MB / 1.212 GB, free: 5.691 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/1.415, allocations: 278.1 kB / 1.212 GB, free: 5.422 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003597/1.415, allocations: 251.5 kB / 1.213 GB, free: 5.18 MB / 0.7761 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.000811/1.416, allocations: 0.4971 MB / 1.213 GB, free: 4.699 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003939/1.416, allocations: 158.1 kB / 1.213 GB, free: 4.543 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01283/1.429, allocations: 6.848 MB / 1.22 GB, free: 13.7 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.611e-05/1.429, allocations: 33.97 kB / 1.22 GB, free: 13.67 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.429, allocations: 8 kB / 1.22 GB, free: 13.66 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-05/1.429, allocations: 15.94 kB / 1.22 GB, free: 13.64 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01538/1.445, allocations: 10.09 MB / 1.23 GB, free: 3.574 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.445, allocations: 8 kB / 1.23 GB, free: 3.566 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002319/1.447, allocations: 0.6592 MB / 1.23 GB, free: 2.934 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002131/1.449, allocations: 0.9477 MB / 1.231 GB, free: 1.969 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/1.449, allocations: 137.4 kB / 1.231 GB, free: 1.836 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01447/1.464, allocations: 14.05 MB / 1.245 GB, free: 2.93 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.464, allocations: 0 / 1.245 GB, free: 2.93 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/1.478, allocations: 8.618 MB / 1.254 GB, free: 10.25 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/1.478, allocations: 223 kB / 1.254 GB, free: 10.01 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/1.478, allocations: 54.66 kB / 1.254 GB, free: 9.961 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/1.48, allocations: 294.3 kB / 1.254 GB, free: 9.676 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004238/1.48, allocations: 274.5 kB / 1.254 GB, free: 9.41 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003422/1.481, allocations: 254.2 kB / 1.255 GB, free: 9.164 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.000405/1.481, allocations: 447 kB / 1.255 GB, free: 8.734 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.4e-07/1.481, allocations: 4 kB / 1.255 GB, free: 8.73 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.007411/1.489, allocations: 3.825 MB / 1.259 GB, free: 4.906 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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): 252 * 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 {(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.02421/1.513, allocations: 14.41 MB / 1.273 GB, free: 6.91 MB / 0.8386 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.009364/1.522, allocations: 6.381 MB / 1.279 GB, free: 412 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/1.522, allocations: 0 / 1.279 GB, free: 412 kB / 0.8386 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_ThermodynamicState391.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_ThermodynamicState477.X Notification: Performance of simCode: created simulation system equations: time 0.006063/1.528, allocations: 4.309 MB / 1.283 GB, free: 12.01 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/1.531, allocations: 0.6419 MB / 1.284 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03814/1.569, allocations: 27.57 MB / 1.311 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/1.57, allocations: 1.696 MB / 1.313 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00267/1.573, allocations: 0.8503 MB / 1.313 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/1.574, allocations: 1.064 MB / 1.314 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of SimCode: time 4.81e-07/1.574, allocations: 0 / 1.314 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.183/2.757, allocations: 142.2 MB / 1.453 GB, free: 397.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/2.757, allocations: 281.9 kB / 1.454 GB, free: 397 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.846/9.603, allocations: 0 / 1.454 GB, free: 397 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_SimpleAirCycle_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_SimpleAirCycle.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.SimpleAirCycle.pipe 2>&1)