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.8348/0.8348, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002926, allocations: 23.97 kB / 204 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1422, allocations: 31.32 MB / 235.4 MB, free: 5.441 MB / 190.1 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.566/1.708, allocations: 293.7 MB / 0.5167 GB, free: 12.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4929/2.201, allocations: 189.6 MB / 0.7018 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005482/2.202, allocations: 14.16 kB / 0.7019 GB, free: 3.707 MB / 0.5762 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.0002767/2.202, allocations: 54.19 kB / 0.7019 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005243/2.202, allocations: 204.8 kB / 0.7021 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02646/2.229, allocations: 8.924 MB / 0.7108 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001011/2.23, allocations: 0.7462 MB / 0.7115 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004008/2.23, allocations: 383.1 kB / 0.7119 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002724/2.231, allocations: 289.6 kB / 0.7122 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003/2.231, allocations: 326.1 kB / 0.7125 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/2.231, allocations: 51.09 kB / 0.7125 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04515/2.276, allocations: 20.29 MB / 0.7324 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004291/2.277, allocations: 132.2 kB / 0.7325 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007374/2.277, allocations: 351.5 kB / 0.7328 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0305/2.308, allocations: 10.44 MB / 0.743 GB, free: 176 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/2.308, allocations: 0 / 0.743 GB, free: 176 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.012e-06/2.308, allocations: 0 / 0.743 GB, free: 176 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.859e-06/2.308, allocations: 3.25 kB / 0.743 GB, free: 176 kB / 0.5762 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.004919/2.313, allocations: 2.095 MB / 0.7451 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/2.313, allocations: 10.16 kB / 0.7451 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/2.313, allocations: 79.56 kB / 0.7452 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/2.313, allocations: 429.2 kB / 0.7456 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/2.313, allocations: 61.06 kB / 0.7456 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.15e-05/2.314, allocations: 63 kB / 0.7457 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008645/2.314, allocations: 0.6849 MB / 0.7464 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/2.314, allocations: 0 / 0.7464 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.637e-05/2.314, allocations: 31.75 kB / 0.7464 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/2.315, allocations: 17.33 kB / 0.7464 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006997/2.315, allocations: 499.7 kB / 0.7469 GB, free: 14.21 MB / 0.5919 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.01472/2.33, allocations: 11.87 MB / 0.7585 GB, free: 4.215 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/2.33, allocations: 180.5 kB / 0.7586 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/2.33, allocations: 83.33 kB / 0.7587 GB, free: 4.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2921/2.623, allocations: 150.2 MB / 0.9054 GB, free: 5.641 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/2.623, allocations: 34.56 kB / 0.9054 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=19): time 2.084e-06/2.623, allocations: 0 / 0.9054 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.002951/2.626, allocations: 0.7494 MB / 0.9062 GB, free: 4.93 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/2.626, allocations: 63.19 kB / 0.9062 GB, free: 4.859 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005807/2.626, allocations: 471.2 kB / 0.9067 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/2.626, allocations: 30.72 kB / 0.9067 GB, free: 4.457 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/2.627, allocations: 369.5 kB / 0.9071 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/2.627, allocations: 73.47 kB / 0.9071 GB, free: 4.113 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/2.627, allocations: 97.25 kB / 0.9072 GB, free: 4.039 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001479/2.627, allocations: 356.5 kB / 0.9076 GB, free: 3.699 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/2.627, allocations: 87.84 kB / 0.9076 GB, free: 3.645 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/2.627, allocations: 263.6 kB / 0.9079 GB, free: 3.355 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/2.628, allocations: 382.9 kB / 0.9083 GB, free: 3.016 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/2.628, allocations: 4 kB / 0.9083 GB, free: 3.012 MB / 0.7481 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008333/2.629, allocations: 493.3 kB / 0.9087 GB, free: 2.672 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/2.629, allocations: 12.16 kB / 0.9087 GB, free: 2.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/2.629, allocations: 4 kB / 0.9088 GB, free: 2.656 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003303/2.632, allocations: 0.5067 MB / 0.9092 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/2.632, allocations: 60.77 kB / 0.9093 GB, free: 2.137 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/2.633, allocations: 0.7986 MB / 0.9101 GB, free: 1.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/2.634, allocations: 53.81 kB / 0.9101 GB, free: 1.363 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/2.634, allocations: 26.81 kB / 0.9102 GB, free: 1.34 MB / 0.7481 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.0002289/2.634, allocations: 183.9 kB / 0.9103 GB, free: 1.191 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-05/2.634, allocations: 51.42 kB / 0.9104 GB, free: 1.141 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009942/2.635, allocations: 430.1 kB / 0.9108 GB, free: 0.8203 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/2.635, allocations: 8 kB / 0.9108 GB, free: 0.8125 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/2.635, allocations: 0 / 0.9108 GB, free: 0.8125 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/2.635, allocations: 7.922 kB / 0.9108 GB, free: 0.8047 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006527/2.636, allocations: 480.3 kB / 0.9113 GB, free: 404 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/2.636, allocations: 0 / 0.9113 GB, free: 404 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-06/2.636, allocations: 0 / 0.9113 GB, free: 404 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002463/2.638, allocations: 418.6 kB / 0.9117 GB, free: 24 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/2.638, allocations: 6.25 kB / 0.9117 GB, free: 20 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009468/2.639, allocations: 0.8141 MB / 0.9125 GB, free: 15.28 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/2.639, allocations: 0 / 0.9125 GB, free: 15.28 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008477/2.64, allocations: 390.6 kB / 0.9128 GB, free: 14.97 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001879/2.64, allocations: 144.8 kB / 0.913 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/2.64, allocations: 7.438 kB / 0.913 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/2.64, allocations: 2.375 kB / 0.913 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/2.641, allocations: 15.23 kB / 0.913 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/2.641, allocations: 7.984 kB / 0.913 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000361/2.641, allocations: 341.4 kB / 0.9133 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/2.641, allocations: 1.203 kB / 0.9133 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004971/2.646, allocations: 1.546 MB / 0.9148 GB, free: 13.1 MB / 0.7637 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.008684/2.655, allocations: 2.337 MB / 0.9171 GB, free: 11.11 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009718/2.656, allocations: 291.5 kB / 0.9174 GB, free: 10.91 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/2.656, allocations: 1.203 kB / 0.9174 GB, free: 10.91 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003476/2.656, allocations: 129.8 kB / 0.9175 GB, free: 10.81 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006811/2.657, allocations: 124.8 kB / 0.9177 GB, free: 10.73 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/2.658, allocations: 1.074 MB / 0.9187 GB, free: 9.688 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/2.659, allocations: 0.8639 MB / 0.9195 GB, free: 8.797 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002221/2.659, allocations: 67.98 kB / 0.9196 GB, free: 8.73 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/2.659, allocations: 35.44 kB / 0.9196 GB, free: 8.695 MB / 0.7637 GB Notification: Performance of SimCode: time 3.2e-07/2.659, allocations: 0 / 0.9196 GB, free: 8.695 MB / 0.7637 GB Notification: Performance of Templates: time 0.06462/2.724, allocations: 49.78 MB / 0.9683 GB, free: 7.078 MB / 0.8106 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)