Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.796/0.796, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002898, allocations: 15.98 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1574, allocations: 31.32 MB / 236 MB, free: 3.879 MB / 186.7 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS): time 1.602/1.759, allocations: 293.1 MB / 0.5167 GB, free: 8.699 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4635/2.223, allocations: 189.6 MB / 0.7018 GB, free: 3.082 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003868/2.223, allocations: 17.41 kB / 0.7018 GB, free: 3.078 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerKS.mo:58:3-60:35:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerKS.mo:61:3-63:37:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerKS.mo:64:3-66:35:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticExchangerKS.mo:67:3-69:32:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002247/2.223, allocations: 58.34 kB / 0.7019 GB, free: 3.078 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0005131/2.224, allocations: 200 kB / 0.7021 GB, free: 3.074 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02704/2.251, allocations: 8.932 MB / 0.7108 GB, free: 2.801 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001186/2.252, allocations: 0.7465 MB / 0.7115 GB, free: 2.797 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005511/2.253, allocations: 385.9 kB / 0.7119 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004717/2.253, allocations: 282.5 kB / 0.7122 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005065/2.254, allocations: 338.1 kB / 0.7125 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001307/2.254, allocations: 52.06 kB / 0.7125 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03832/2.292, allocations: 20.29 MB / 0.7324 GB, free: 0.9141 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002394/2.292, allocations: 133.2 kB / 0.7325 GB, free: 0.8945 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005204/2.293, allocations: 352.2 kB / 0.7328 GB, free: 0.8711 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02455/2.318, allocations: 10.5 MB / 0.7431 GB, free: 13.28 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/2.318, allocations: 0 / 0.7431 GB, free: 13.28 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.353e-06/2.318, allocations: 0 / 0.7431 GB, free: 13.28 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.652e-05/2.318, allocations: 3.062 kB / 0.7431 GB, free: 13.28 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.007033/2.325, allocations: 2.096 MB / 0.7451 GB, free: 11.96 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/2.325, allocations: 8.125 kB / 0.7451 GB, free: 11.96 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/2.325, allocations: 80.69 kB / 0.7452 GB, free: 11.93 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006538/2.326, allocations: 428 kB / 0.7456 GB, free: 11.61 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.166e-05/2.326, allocations: 54.72 kB / 0.7457 GB, free: 11.61 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/2.326, allocations: 64.03 kB / 0.7457 GB, free: 11.61 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/2.327, allocations: 0.6906 MB / 0.7464 GB, free: 11.36 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/2.327, allocations: 0 / 0.7464 GB, free: 11.36 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/2.327, allocations: 28.81 kB / 0.7464 GB, free: 11.36 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/2.327, allocations: 16.31 kB / 0.7464 GB, free: 11.36 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007392/2.328, allocations: 0.4883 MB / 0.7469 GB, free: 11.3 MB / 0.573 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.01655/2.344, allocations: 11.88 MB / 0.7585 GB, free: 332 kB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/2.345, allocations: 178 kB / 0.7587 GB, free: 208 kB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/2.345, allocations: 87.22 kB / 0.7588 GB, free: 148 kB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4003/2.745, allocations: 150.2 MB / 0.9055 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/2.745, allocations: 30.56 kB / 0.9055 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=19): time 3.497e-06/2.745, allocations: 0 / 0.9055 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19): time 0.004476/2.75, allocations: 0.7503 MB / 0.9062 GB, free: 9.348 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/2.75, allocations: 55.41 kB / 0.9063 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008101/2.751, allocations: 477.8 kB / 0.9067 GB, free: 8.805 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3e-05/2.751, allocations: 33.7 kB / 0.9068 GB, free: 8.766 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000329/2.751, allocations: 371.6 kB / 0.9071 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/2.751, allocations: 59.11 kB / 0.9072 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/2.751, allocations: 101.9 kB / 0.9073 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001742/2.752, allocations: 354.8 kB / 0.9076 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/2.752, allocations: 88.83 kB / 0.9077 GB, free: 7.801 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/2.752, allocations: 263.8 kB / 0.9079 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007158/2.753, allocations: 382.7 kB / 0.9083 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/2.753, allocations: 0 / 0.9083 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001261/2.754, allocations: 494.9 kB / 0.9088 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/2.754, allocations: 11.94 kB / 0.9088 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/2.754, allocations: 12 kB / 0.9088 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005195/2.76, allocations: 0.4979 MB / 0.9093 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/2.76, allocations: 65.78 kB / 0.9093 GB, free: 6.008 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/2.761, allocations: 0.7961 MB / 0.9101 GB, free: 5.191 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000435/2.762, allocations: 55.38 kB / 0.9102 GB, free: 5.137 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.016e-05/2.762, allocations: 29.23 kB / 0.9102 GB, free: 5.109 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 8 (sourceP3.C.ftype,sourceP2.C.ftype,plateHeatExchanger.fluid_c,plateHeatExchanger.fluid_f,puitsP2.fluid,puitsP3.fluid,sourceP3.fluid1,sourceP2.fluid1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003054/2.762, allocations: 186 kB / 0.9104 GB, free: 4.926 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/2.762, allocations: 43.44 kB / 0.9104 GB, free: 4.883 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/2.764, allocations: 448.7 kB / 0.9109 GB, free: 4.438 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/2.764, allocations: 7.938 kB / 0.9109 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/2.764, allocations: 0 / 0.9109 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/2.764, allocations: 0 / 0.9109 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00074/2.765, allocations: 484.5 kB / 0.9113 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/2.765, allocations: 0 / 0.9113 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/2.765, allocations: 0 / 0.9113 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003622/2.768, allocations: 423.7 kB / 0.9117 GB, free: 3.496 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/2.768, allocations: 8 kB / 0.9117 GB, free: 3.488 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/2.77, allocations: 0.8069 MB / 0.9125 GB, free: 2.66 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/2.77, allocations: 0 / 0.9125 GB, free: 2.66 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/2.771, allocations: 1.162 MB / 0.9137 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/2.772, allocations: 148.4 kB / 0.9138 GB, free: 1.277 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/2.772, allocations: 7.938 kB / 0.9138 GB, free: 1.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/2.772, allocations: 4 kB / 0.9138 GB, free: 1.266 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/2.772, allocations: 15.98 kB / 0.9138 GB, free: 1.25 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/2.772, allocations: 15.92 kB / 0.9138 GB, free: 1.234 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0004102/2.772, allocations: 338.9 kB / 0.9142 GB, free: 0.9062 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/2.772, allocations: 1.094 kB / 0.9142 GB, free: 0.9062 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.004321/2.777, allocations: 1.604 MB / 0.9157 GB, free: 15.3 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006492/2.783, allocations: 2.346 MB / 0.918 GB, free: 13.24 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0008347/2.784, allocations: 288 kB / 0.9183 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/2.784, allocations: 0 / 0.9183 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003299/2.784, allocations: 126 kB / 0.9184 GB, free: 12.85 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006528/2.785, allocations: 128.5 kB / 0.9185 GB, free: 12.73 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/2.787, allocations: 1.238 MB / 0.9197 GB, free: 11.46 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/2.787, allocations: 0.862 MB / 0.9206 GB, free: 10.57 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0001928/2.787, allocations: 64.36 kB / 0.9206 GB, free: 10.51 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/2.787, allocations: 40.62 kB / 0.9207 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of SimCode: time 2.5e-07/2.787, allocations: 0 / 0.9207 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of Templates: time 0.2241/3.011, allocations: 50 MB / 0.9695 GB, free: 437 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe 2>&1)