Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1.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.Examples.SimpleExamples.TestStaticDrum1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticDrum1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticDrum1",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.7955/0.7955, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.874e-05/1.877e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.137, allocations: 31.99 MB / 236.8 MB, free: 5.43 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.Examples.SimpleExamples.TestStaticDrum1): time 1.524/1.661, allocations: 296.8 MB / 0.5212 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03775/1.699, allocations: 35.18 MB / 0.5555 GB, free: 8.047 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/1.699, allocations: 8 kB / 0.5555 GB, free: 8.039 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000445/1.7, allocations: 175 kB / 0.5557 GB, free: 7.867 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004957/1.7, allocations: 258 kB / 0.5559 GB, free: 7.613 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0169/1.717, allocations: 6.835 MB / 0.5626 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/1.719, allocations: 1.034 MB / 0.5636 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006135/1.719, allocations: 390.8 kB / 0.564 GB, free: 15.35 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005431/1.72, allocations: 330.4 kB / 0.5643 GB, free: 15.03 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/1.72, allocations: 334.2 kB / 0.5646 GB, free: 14.7 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.653e-05/1.72, allocations: 32 kB / 0.5647 GB, free: 14.67 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02479/1.745, allocations: 15.85 MB / 0.5801 GB, free: 14.8 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/1.745, allocations: 123.3 kB / 0.5803 GB, free: 14.68 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000451/1.746, allocations: 423.5 kB / 0.5807 GB, free: 14.25 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01462/1.76, allocations: 8.4 MB / 0.5889 GB, free: 5.832 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/1.761, allocations: 4 kB / 0.5889 GB, free: 5.828 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.723e-06/1.761, allocations: 0 / 0.5889 GB, free: 5.828 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/1.761, allocations: 0 / 0.5889 GB, free: 5.828 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 268 * Number of variables: 268 Notification: Performance of Generate backend data structure: time 0.003872/1.764, allocations: 1.747 MB / 0.5906 GB, free: 4.027 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/1.764, allocations: 8.031 kB / 0.5906 GB, free: 4.02 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001397/1.765, allocations: 148.7 kB / 0.5907 GB, free: 3.863 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/1.765, allocations: 102.7 kB / 0.5908 GB, free: 3.762 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/1.765, allocations: 404.4 kB / 0.5912 GB, free: 3.324 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.94e-05/1.765, allocations: 69.94 kB / 0.5913 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-05/1.765, allocations: 80 kB / 0.5914 GB, free: 3.18 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/1.767, allocations: 1.017 MB / 0.5923 GB, free: 2.047 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/1.767, allocations: 7.938 kB / 0.5924 GB, free: 2.039 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.279e-05/1.767, allocations: 32 kB / 0.5924 GB, free: 2.008 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.628e-05/1.767, allocations: 47.91 kB / 0.5924 GB, free: 1.961 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008422/1.768, allocations: 0.5677 MB / 0.593 GB, free: 1.387 MB / 478.1 MB 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.004755/1.772, allocations: 6.584 MB / 0.5994 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/1.774, allocations: 376.1 kB / 0.5998 GB, free: 9.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000283/1.774, allocations: 194.1 kB / 0.6 GB, free: 9.625 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.165/1.939, allocations: 81.17 MB / 0.6792 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/1.939, allocations: 38.5 kB / 0.6793 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=82): time 2.535e-06/1.939, allocations: 0 / 0.6793 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.002906/1.942, allocations: 1.228 MB / 0.6805 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/1.942, allocations: 55.27 kB / 0.6805 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/1.942, allocations: 497.8 kB / 0.681 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/1.942, allocations: 33.7 kB / 0.681 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000238/1.943, allocations: 367.5 kB / 0.6814 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/1.943, allocations: 271.9 kB / 0.6816 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/1.943, allocations: 93.66 kB / 0.6817 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001379/1.943, allocations: 378.7 kB / 0.6821 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/1.943, allocations: 169.5 kB / 0.6822 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/1.944, allocations: 448.2 kB / 0.6827 GB, free: 11.77 MB / 0.5762 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/1.947, allocations: 1.506 MB / 0.6841 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/1.947, allocations: 0 / 0.6841 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001575/1.948, allocations: 0.8881 MB / 0.685 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.948, allocations: 8.031 kB / 0.685 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/1.948, allocations: 16 kB / 0.685 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/1.95, allocations: 0.649 MB / 0.6857 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005645/1.95, allocations: 87.8 kB / 0.6858 GB, free: 8.453 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/1.952, allocations: 2.022 MB / 0.6877 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004211/1.952, allocations: 114.6 kB / 0.6878 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/1.952, allocations: 32 kB / 0.6879 GB, free: 6.211 MB / 0.5762 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: sensorT.h = $START.sensorT.h. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 30 (sourcePlug.C.b,refQ.C2.b,refQ.C1.a,refP.C2.b,refP.C1.a,sensorT1.C2.b,sensorT1.C1.a,sinkP2.C.a,singularPressureLossVALI3.C2.b,singularPressureLossVALI3.C1.a,sensorT.C2.b,sensorT.C1.a,sinkP1.C.a,singularPressureLossVALI2.C2.b,singularPressureLossVALI2.C1.a,singularPressureLossVALI1.C2.b,singularPressureLossVALI1.C1.a,StaticDrumTh1.Ce_sup.a,StaticDrumTh1.Ce_steam.a,StaticDrumTh1.Cs_purg.b,StaticDrumTh1.Cs_sur.b,StaticDrumTh1.Cs_eva.b,StaticDrumTh1.Cs_sup.b,StaticDrumTh1.Ce_eco.a,StaticDrumTh1.Ce_eva.a,StaticDrumTh1.Cs_sup.a,StaticDrumTh1.Cs_eva.a,StaticDrumTh1.Ce_eva.b,StaticDrumTh1.Ce_sup.b,StaticDrumTh1.Ce_steam.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/1.952, allocations: 228.4 kB / 0.6881 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.25e-05/1.953, allocations: 59.25 kB / 0.6881 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/1.954, allocations: 1.181 MB / 0.6893 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001192/1.955, allocations: 0.8944 MB / 0.6902 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/1.955, allocations: 4 kB / 0.6902 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.955, allocations: 4.078 kB / 0.6902 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/1.958, allocations: 2.225 MB / 0.6923 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/1.958, allocations: 3.984 kB / 0.6924 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006708/1.959, allocations: 127.9 kB / 0.6925 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009908/1.96, allocations: 0.6634 MB / 0.6931 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/1.96, allocations: 12 kB / 0.6931 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1572/2.117, allocations: 2.038 MB / 0.6951 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/2.117, allocations: 0 / 0.6951 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/2.119, allocations: 1.055 MB / 0.6962 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/2.119, allocations: 206.1 kB / 0.6963 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/2.119, allocations: 13.94 kB / 0.6964 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/2.119, allocations: 28.8 kB / 0.6964 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/2.119, allocations: 43.5 kB / 0.6964 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/2.119, allocations: 18.22 kB / 0.6964 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003314/2.12, allocations: 329.3 kB / 0.6968 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.12, allocations: 0 / 0.6968 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002854/2.123, allocations: 1.248 MB / 0.698 GB, free: 224.6 MB / 0.5762 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 (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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), (2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006026/2.129, allocations: 3.137 MB / 0.701 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001403/2.13, allocations: 0.9515 MB / 0.702 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/2.13, allocations: 0.5312 kB / 0.702 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007328/2.131, allocations: 476.6 kB / 0.7024 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/2.132, allocations: 289.6 kB / 0.7027 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007291/2.14, allocations: 6.907 MB / 0.7095 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/2.14, allocations: 1.035 MB / 0.7105 GB, free: 219.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002991/2.14, allocations: 77.8 kB / 0.7105 GB, free: 219.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/2.14, allocations: 345.5 kB / 0.7109 GB, free: 219.6 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/2.14, allocations: 0 / 0.7109 GB, free: 219.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06595/2.206, allocations: 56.9 MB / 0.7664 GB, free: 180.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001281/2.207, allocations: 233.8 kB / 0.7667 GB, free: 180.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.2/6.407, allocations: 0 / 0.7667 GB, free: 180.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticDrum1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticDrum1.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticDrum1.pipe 2>&1)