Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicFlueGasesMultiFluidHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicFlueGasesMultiFluidHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7988/0.7988, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.967e-05/1.971e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1571, allocations: 31.98 MB / 236.8 MB, free: 5.41 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger): time 1.576/1.733, allocations: 299 MB / 0.5233 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5263/2.26, allocations: 195.1 MB / 0.7139 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/2.261, allocations: 21.34 kB / 0.7139 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001116/2.263, allocations: 318.7 kB / 0.7142 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003537/2.266, allocations: 1.135 MB / 0.7153 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0328/2.299, allocations: 11.1 MB / 0.7262 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007198/2.306, allocations: 7.792 MB / 0.7338 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/2.309, allocations: 2.059 MB / 0.7358 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003505/2.313, allocations: 1.936 MB / 0.7377 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004811/2.317, allocations: 2.553 MB / 0.7402 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00101/2.318, allocations: 200.4 kB / 0.7404 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04793/2.366, allocations: 23.17 MB / 0.763 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002575/2.369, allocations: 1.326 MB / 0.7643 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.004072/2.373, allocations: 1.932 MB / 0.7662 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04375/2.417, allocations: 16.53 MB / 0.7823 GB, free: 3.883 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/2.417, allocations: 0 / 0.7823 GB, free: 3.883 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.627e-06/2.417, allocations: 8 kB / 0.7823 GB, free: 3.875 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.000162/2.417, allocations: 0 / 0.7823 GB, free: 3.875 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 954 * Number of variables: 954 Notification: Performance of Generate backend data structure: time 0.02238/2.439, allocations: 5.746 MB / 0.7879 GB, free: 14.33 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/2.44, allocations: 8.031 kB / 0.7879 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001461/2.441, allocations: 0.4995 MB / 0.7884 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008688/2.442, allocations: 391.5 kB / 0.7888 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002944/2.445, allocations: 1.76 MB / 0.7905 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001418/2.446, allocations: 1.203 MB / 0.7917 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006252/2.447, allocations: 292 kB / 0.792 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/2.461, allocations: 6.843 MB / 0.7986 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.133e-05/2.461, allocations: 0 / 0.7986 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004195/2.462, allocations: 120 kB / 0.7988 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.622e-05/2.462, allocations: 108 kB / 0.7989 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02091/2.483, allocations: 9.523 MB / 0.8082 GB, free: 9.641 MB / 0.6231 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05634/2.539, allocations: 29.89 MB / 0.8374 GB, free: 9.973 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01829/2.557, allocations: 7.044 MB / 0.8442 GB, free: 2.844 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01181/2.569, allocations: 4.926 MB / 0.849 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7463/3.316, allocations: 226.4 MB / 1.07 GB, free: 146.5 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.894e-05/3.316, allocations: 73.5 kB / 1.07 GB, free: 146.4 MB / 0.795 GB Notification: Performance of pre-optimization done (n=589): time 1.032e-05/3.316, allocations: 4 kB / 1.07 GB, free: 146.4 MB / 0.795 GB Notification: Performance of matching and sorting (n=589): time 0.1195/3.435, allocations: 29.36 MB / 1.099 GB, free: 121.5 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/3.435, allocations: 91.33 kB / 1.099 GB, free: 121.4 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/3.437, allocations: 1.099 MB / 1.1 GB, free: 120.6 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.001539/3.439, allocations: 85.7 kB / 1.1 GB, free: 120.6 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000538/3.439, allocations: 0.8035 MB / 1.101 GB, free: 120 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.002807/3.442, allocations: 1.952 MB / 1.103 GB, free: 118.3 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001798/3.444, allocations: 413 kB / 1.103 GB, free: 118 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 5.214e-05/3.444, allocations: 301.1 kB / 1.104 GB, free: 117.7 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01039/3.455, allocations: 4.308 MB / 1.108 GB, free: 114.7 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01076/3.465, allocations: 4.857 MB / 1.112 GB, free: 111.1 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02007/3.485, allocations: 9.153 MB / 1.121 GB, free: 104.7 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.399e-05/3.486, allocations: 3.938 kB / 1.121 GB, free: 104.7 MB / 0.795 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.03787/3.523, allocations: 14.42 MB / 1.136 GB, free: 93.16 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.998e-05/3.524, allocations: 12.03 kB / 1.136 GB, free: 93.14 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.878e-05/3.524, allocations: 16 kB / 1.136 GB, free: 93.13 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07253/3.596, allocations: 21.58 MB / 1.157 GB, free: 71.48 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009344/3.597, allocations: 245.2 kB / 1.157 GB, free: 71.26 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0381/3.635, allocations: 17.65 MB / 1.174 GB, free: 53.45 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005829/3.641, allocations: 0.9636 MB / 1.175 GB, free: 52.48 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001606/3.643, allocations: 191.8 kB / 1.175 GB, free: 52.3 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 12 (sourceP1.C.ftype,sourceP.C.ftype,sinkP.fluid,dynamicMultiFluidHeatExchanger.ExchangerFlueGasesMetal.fluid,dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.fluid,sinkP1.fluid,sourceP1.fluid1,sourceP.fluid1,dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.C1.diff_on_2,dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.C2.diff_on_1,dynamicMultiFluidHeatExchanger.ExchangerFlueGasesMetal.C1.diff_on_2,dynamicMultiFluidHeatExchanger.ExchangerFlueGasesMetal.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (23,317)} Notification: Performance of prepare postOptimizeDAE: time 0.003923/3.647, allocations: 0.9285 MB / 1.176 GB, free: 51.38 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/3.648, allocations: 272.5 kB / 1.176 GB, free: 51.11 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04139/3.69, allocations: 15.2 MB / 1.191 GB, free: 35.82 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03797/3.728, allocations: 13.53 MB / 1.204 GB, free: 22.21 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.804e-05/3.728, allocations: 0 / 1.204 GB, free: 22.21 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000108/3.728, allocations: 26.62 kB / 1.204 GB, free: 22.19 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06466/3.792, allocations: 23.96 MB / 1.228 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001172/3.793, allocations: 8 kB / 1.228 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003969/3.797, allocations: 0.8172 MB / 1.229 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0269/3.824, allocations: 6.651 MB / 1.235 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001388/3.825, allocations: 159.8 kB / 1.235 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.259/4.084, allocations: 28.69 MB / 1.263 GB, free: 451.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/4.084, allocations: 4.625 kB / 1.263 GB, free: 451.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06463/4.149, allocations: 20.56 MB / 1.283 GB, free: 450.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0035/4.152, allocations: 1.202 MB / 1.285 GB, free: 450.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/4.154, allocations: 95.89 kB / 1.285 GB, free: 450.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005628/4.16, allocations: 0.6812 MB / 1.285 GB, free: 450.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002011/4.162, allocations: 358.2 kB / 1.286 GB, free: 450.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001347/4.163, allocations: 175.2 kB / 1.286 GB, free: 450.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001339/4.164, allocations: 0.7343 MB / 1.287 GB, free: 449.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.31e-07/4.164, allocations: 0 / 1.287 GB, free: 449.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.01139/4.176, allocations: 2.956 MB / 1.289 GB, free: 449.4 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (dynamicMultiFluidHeatExchanger.ExchangerWall.Tp[1],dynamicMultiFluidHeatExchanger.ExchangerWall.Tp[2],dynamicMultiFluidHeatExchanger.ExchangerWall.Tp[3],dynamicMultiFluidHeatExchanger.ExchangerWall.Tp[4],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.P[2],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.P[3],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.P[4],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.P[5],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.h[2],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.h[3],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.h[4],dynamicMultiFluidHeatExchanger.TwoPhaseFlowPipe.h[5]) * 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 (310): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 11 systems {(1,8), (1,8), (1,15), (1,8), (1,15), (1,8), (1,15), (1,15), (1,15), (1,1), (8,60)} Notification: Performance of Backend phase and start with SimCode phase: time 0.07609/4.252, allocations: 23.94 MB / 1.313 GB, free: 434.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.02788/4.28, allocations: 11.39 MB / 1.324 GB, free: 423.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/4.28, allocations: 0 / 1.324 GB, free: 423.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0168/4.297, allocations: 6.975 MB / 1.331 GB, free: 416 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009/4.306, allocations: 1.086 MB / 1.332 GB, free: 415 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1377/4.443, allocations: 59.28 MB / 1.39 GB, free: 354.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00236/4.446, allocations: 2.525 MB / 1.392 GB, free: 352.2 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002715/4.449, allocations: 0.7587 MB / 1.393 GB, free: 351.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001859/4.45, allocations: 1.347 MB / 1.394 GB, free: 350.1 MB / 0.8262 GB Notification: Performance of SimCode: time 1.252e-06/4.45, allocations: 0 / 1.394 GB, free: 350.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2446/4.695, allocations: 211.2 MB / 1.6 GB, free: 140.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002584/4.695, allocations: 322.9 kB / 1.601 GB, free: 140.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.183/13.88, allocations: 0 / 1.601 GB, free: 140.1 MB / 0.8262 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicFlueGasesMultiFluidHeatExchanger_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicFlueGasesMultiFluidHeatExchanger.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicFlueGasesMultiFluidHeatExchanger.pipe 2>&1)