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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions4",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.7814/0.7814, allocations: 150.8 MB / 166.1 MB, free: 15.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.099e-05, allocations: 4 kB / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1618, allocations: 31.98 MB / 236.8 MB, free: 5.402 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.465/1.627, allocations: 296.3 MB / 0.5206 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1712/1.798, allocations: 186.6 MB / 0.7029 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/1.798, allocations: 11.94 kB / 0.7029 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001299/1.799, allocations: 67.41 kB / 0.7029 GB, free: 448 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004576/1.799, allocations: 250 kB / 0.7032 GB, free: 196 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2604/2.059, allocations: 9.062 MB / 0.712 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009877/2.06, allocations: 0.9536 MB / 0.7129 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000533/2.061, allocations: 480.8 kB / 0.7134 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/2.061, allocations: 322.6 kB / 0.7137 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003644/2.062, allocations: 368.3 kB / 0.7141 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.795e-05/2.062, allocations: 38.91 kB / 0.7141 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02743/2.089, allocations: 20.25 MB / 0.7339 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002389/2.09, allocations: 141.6 kB / 0.734 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005489/2.09, allocations: 445.6 kB / 0.7344 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02134/2.112, allocations: 10.5 MB / 0.7447 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/2.112, allocations: 128 / 0.7447 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd: time 2.815e-06/2.112, allocations: 3.625 kB / 0.7447 GB, free: 0 / 0.5762 GB Notification: Performance of Transformations before backend: time 1.144e-05/2.112, allocations: 0 / 0.7447 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.004736/2.116, allocations: 2.089 MB / 0.7467 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/2.116, allocations: 8.781 kB / 0.7467 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/2.117, allocations: 145.3 kB / 0.7469 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/2.117, allocations: 117.6 kB / 0.747 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/2.117, allocations: 487.9 kB / 0.7475 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/2.117, allocations: 103.9 kB / 0.7476 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.09e-05/2.117, allocations: 89.94 kB / 0.7476 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/2.119, allocations: 0.977 MB / 0.7486 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/2.119, allocations: 5.5 kB / 0.7486 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/2.119, allocations: 37.78 kB / 0.7486 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/2.119, allocations: 29.98 kB / 0.7487 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009568/2.12, allocations: 0.633 MB / 0.7493 GB, free: 13.7 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.01017/2.13, allocations: 10.45 MB / 0.7595 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/2.13, allocations: 234.5 kB / 0.7597 GB, free: 4.547 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/2.13, allocations: 109.3 kB / 0.7598 GB, free: 4.527 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6304/2.761, allocations: 220.7 MB / 0.9754 GB, free: 460.1 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/2.761, allocations: 36.22 kB / 0.9754 GB, free: 460.1 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 3.256e-06/2.761, allocations: 1.188 kB / 0.9754 GB, free: 460.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.002623/2.763, allocations: 0.9452 MB / 0.9763 GB, free: 459.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/2.764, allocations: 53.03 kB / 0.9764 GB, free: 459.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007483/2.764, allocations: 0.531 MB / 0.9769 GB, free: 459.6 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/2.764, allocations: 29.73 kB / 0.9769 GB, free: 459.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/2.765, allocations: 487.1 kB / 0.9774 GB, free: 459.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.885e-05/2.765, allocations: 94.45 kB / 0.9775 GB, free: 459.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/2.765, allocations: 74.55 kB / 0.9776 GB, free: 459.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.414e-05/2.765, allocations: 363.6 kB / 0.9779 GB, free: 458.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000288/2.765, allocations: 129.5 kB / 0.978 GB, free: 458.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003962/2.766, allocations: 455.4 kB / 0.9785 GB, free: 458.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/2.766, allocations: 0.6214 MB / 0.9791 GB, free: 458.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/2.766, allocations: 4.344 kB / 0.9791 GB, free: 458.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001633/2.768, allocations: 0.792 MB / 0.9799 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/2.768, allocations: 9.141 kB / 0.9799 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/2.768, allocations: 12.19 kB / 0.9799 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/2.77, allocations: 388.9 kB / 0.9802 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/2.77, allocations: 100.7 kB / 0.9803 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/2.771, allocations: 1.821 MB / 0.9821 GB, free: 456.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005058/2.771, allocations: 102.1 kB / 0.9822 GB, free: 456.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/2.771, allocations: 42.7 kB / 0.9823 GB, free: 456.3 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.0002709/2.772, allocations: 226.1 kB / 0.9825 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/2.772, allocations: 60.38 kB / 0.9825 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009317/2.773, allocations: 492.5 kB / 0.983 GB, free: 456 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/2.773, allocations: 3.219 kB / 0.983 GB, free: 456 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/2.773, allocations: 6.359 kB / 0.983 GB, free: 456 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/2.773, allocations: 0 / 0.983 GB, free: 456 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005641/2.773, allocations: 0.5636 MB / 0.9836 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/2.773, allocations: 0 / 0.9836 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.965e-05/2.773, allocations: 12.98 kB / 0.9836 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/2.775, allocations: 302.7 kB / 0.9839 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/2.775, allocations: 13.83 kB / 0.9839 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000899/2.775, allocations: 1.805 MB / 0.9856 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/2.775, allocations: 0 / 0.9856 GB, free: 454.2 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007598/2.776, allocations: 0.5087 MB / 0.9861 GB, free: 454 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/2.776, allocations: 157.2 kB / 0.9863 GB, free: 453.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.12e-05/2.776, allocations: 10.06 kB / 0.9863 GB, free: 453.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/2.777, allocations: 12.33 kB / 0.9863 GB, free: 453.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/2.777, allocations: 17.12 kB / 0.9863 GB, free: 453.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/2.777, allocations: 13.41 kB / 0.9863 GB, free: 453.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003318/2.777, allocations: 343.1 kB / 0.9867 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.11e-07/2.777, allocations: 3.938 kB / 0.9867 GB, free: 453.8 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00412/2.781, allocations: 1.578 MB / 0.9882 GB, free: 453.7 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.007727/2.789, allocations: 3.176 MB / 0.9913 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001073/2.79, allocations: 420.2 kB / 0.9917 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/2.79, allocations: 3.906 kB / 0.9917 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003739/2.79, allocations: 161.8 kB / 0.9919 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008231/2.791, allocations: 138.9 kB / 0.992 GB, free: 452.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008547/2.8, allocations: 6.014 MB / 0.9979 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/2.8, allocations: 0.9165 MB / 0.9988 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000339/2.801, allocations: 89.2 kB / 0.9989 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/2.801, allocations: 255.2 kB / 0.9991 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of SimCode: time 6.41e-07/2.801, allocations: 0 / 0.9991 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.673/6.474, allocations: 56.64 MB / 1.054 GB, free: 407.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/6.474, allocations: 285.3 kB / 1.055 GB, free: 407.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.363/10.84, allocations: 0 / 1.055 GB, free: 407.2 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestJunctions4.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestJunctions4.pipe 2>&1)