Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.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.TestJunctions4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8623/0.8623, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.565e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2063, allocations: 31.98 MB / 236.8 MB, free: 5.445 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.TestJunctions4): time 1.671/1.877, allocations: 295.3 MB / 0.5196 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2133/2.091, allocations: 186.6 MB / 0.7018 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000528/2.091, allocations: 19.88 kB / 0.7018 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001823/2.091, allocations: 71.41 kB / 0.7019 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006387/2.092, allocations: 242 kB / 0.7021 GB, free: 476 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.373/2.465, allocations: 9.059 MB / 0.711 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001354/2.466, allocations: 0.9488 MB / 0.7119 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006016/2.467, allocations: 487.1 kB / 0.7124 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004364/2.468, allocations: 323.7 kB / 0.7127 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/2.468, allocations: 371.2 kB / 0.713 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.312e-05/2.468, allocations: 40.5 kB / 0.7131 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03755/2.506, allocations: 20.24 MB / 0.7329 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002689/2.506, allocations: 150 kB / 0.733 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000682/2.507, allocations: 437.6 kB / 0.7334 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02615/2.533, allocations: 10.47 MB / 0.7436 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/2.533, allocations: 128 / 0.7436 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd: time 2.595e-06/2.533, allocations: 1.719 kB / 0.7436 GB, free: 0 / 0.5762 GB Notification: Performance of Transformations before backend: time 1.436e-05/2.533, allocations: 0 / 0.7436 GB, free: 0 / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.006127/2.539, allocations: 2.085 MB / 0.7457 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/2.539, allocations: 8.594 kB / 0.7457 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/2.539, allocations: 114.9 kB / 0.7458 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006055/2.54, allocations: 486.2 kB / 0.7463 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/2.54, allocations: 102.2 kB / 0.7464 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.191e-05/2.54, allocations: 87.94 kB / 0.7464 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/2.541, allocations: 0.9872 MB / 0.7474 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/2.541, allocations: 2.906 kB / 0.7474 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.521e-05/2.542, allocations: 40.16 kB / 0.7474 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/2.542, allocations: 23.94 kB / 0.7475 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/2.543, allocations: 0.6383 MB / 0.7481 GB, free: 13.76 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.01252/2.555, allocations: 10.44 MB / 0.7583 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003794/2.556, allocations: 231.6 kB / 0.7585 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/2.556, allocations: 110.9 kB / 0.7586 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.692/3.248, allocations: 220.7 MB / 0.9742 GB, free: 460.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/3.248, allocations: 44.98 kB / 0.9742 GB, free: 460.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 3.106e-06/3.248, allocations: 0 / 0.9742 GB, free: 460.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.00298/3.251, allocations: 0.9397 MB / 0.9751 GB, free: 460.4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/3.251, allocations: 54.66 kB / 0.9752 GB, free: 460.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000863/3.252, allocations: 0.5287 MB / 0.9757 GB, free: 460.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/3.252, allocations: 29.92 kB / 0.9757 GB, free: 460.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/3.252, allocations: 484.2 kB / 0.9762 GB, free: 459.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.385e-05/3.252, allocations: 96.56 kB / 0.9763 GB, free: 459.9 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.359e-05/3.252, allocations: 71.17 kB / 0.9764 GB, free: 459.9 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.921e-05/3.252, allocations: 363.8 kB / 0.9767 GB, free: 459.6 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/3.253, allocations: 133.4 kB / 0.9768 GB, free: 459.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/3.253, allocations: 456.9 kB / 0.9773 GB, free: 459.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007676/3.254, allocations: 0.6177 MB / 0.9779 GB, free: 458.7 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.881e-05/3.254, allocations: 4.188 kB / 0.9779 GB, free: 458.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00172/3.256, allocations: 0.7916 MB / 0.9786 GB, free: 458.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/3.256, allocations: 8.531 kB / 0.9787 GB, free: 458.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/3.256, allocations: 15.56 kB / 0.9787 GB, free: 458.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/3.257, allocations: 390.1 kB / 0.979 GB, free: 458.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/3.258, allocations: 94.45 kB / 0.9791 GB, free: 458.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/3.259, allocations: 1.83 MB / 0.9809 GB, free: 456.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000587/3.259, allocations: 104.6 kB / 0.981 GB, free: 456.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.147e-05/3.259, allocations: 38.19 kB / 0.9811 GB, free: 456.9 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 20 (source.fluid1,sourceP.fluid1,source.C.ftype,sourceP.C.ftype,deheaterMixer2_1.Cs.ftype,deheaterMixer2_1.fluids[1],singularPressureLoss.fluid,singularPressureLoss1.fluid,singularPressureLoss2.fluid,sinkP.fluid,deheaterMixer2_1.fluid1,singularPressureLoss2.C2.diff_on_1,singularPressureLoss.C2.diff_on_1,deheaterMixer2_1.Cs.diff_on_2,deheaterMixer2_1.Ce_mix.diff_on_2,source.C.diff_on_2,deheaterMixer2_1.Cs.diff_on_1,singularPressureLoss1.C2.diff_on_1,deheaterMixer2_1.Ce.diff_on_2,sourceP.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (3,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003633/3.26, allocations: 230.1 kB / 0.9813 GB, free: 456.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.85e-05/3.26, allocations: 57.83 kB / 0.9813 GB, free: 456.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/3.261, allocations: 484.2 kB / 0.9818 GB, free: 456.6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/3.261, allocations: 2.875 kB / 0.9818 GB, free: 456.6 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/3.261, allocations: 4.344 kB / 0.9818 GB, free: 456.6 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/3.261, allocations: 3 kB / 0.9818 GB, free: 456.6 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000721/3.262, allocations: 0.5642 MB / 0.9824 GB, free: 456.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/3.262, allocations: 2.875 kB / 0.9824 GB, free: 456.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/3.262, allocations: 10.31 kB / 0.9824 GB, free: 456.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/3.263, allocations: 303.9 kB / 0.9827 GB, free: 456.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/3.263, allocations: 13.05 kB / 0.9827 GB, free: 456.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009328/3.264, allocations: 1.805 MB / 0.9844 GB, free: 454.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/3.264, allocations: 1.969 kB / 0.9844 GB, free: 454.8 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008078/3.265, allocations: 0.5077 MB / 0.9849 GB, free: 454.6 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/3.265, allocations: 158.1 kB / 0.9851 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/3.265, allocations: 9.656 kB / 0.9851 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/3.265, allocations: 5.156 kB / 0.9851 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.753e-05/3.265, allocations: 24.08 kB / 0.9851 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/3.265, allocations: 16.36 kB / 0.9851 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004003/3.266, allocations: 344.1 kB / 0.9855 GB, free: 454.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.8e-07/3.266, allocations: 0 / 0.9855 GB, free: 454.4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004678/3.271, allocations: 1.576 MB / 0.987 GB, free: 454.3 MB / 0.8106 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 (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008726/3.279, allocations: 2.261 MB / 0.9892 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001249/3.281, allocations: 420.4 kB / 0.9896 GB, free: 454.1 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/3.281, allocations: 0 / 0.9896 GB, free: 454.1 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004456/3.281, allocations: 169.6 kB / 0.9898 GB, free: 454.1 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/3.282, allocations: 141.9 kB / 0.9899 GB, free: 454.1 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/3.284, allocations: 1.378 MB / 0.9912 GB, free: 453.3 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/3.285, allocations: 0.913 MB / 0.9921 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004281/3.285, allocations: 95.92 kB / 0.9922 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.725e-05/3.285, allocations: 46.17 kB / 0.9923 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/3.285, allocations: 0 / 0.9923 GB, free: 452.6 MB / 0.8106 GB Notification: Performance of Templates: time 0.06983/3.355, allocations: 49.28 MB / 1.04 GB, free: 420.4 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.pipe 2>&1) Environment - environmentSimulation: