Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestStaticDrum1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.7723/0.7723, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.455e-05/1.456e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 31.98 MB / 236.8 MB, free: 5.176 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.TestStaticDrum1): time 1.42/1.553, allocations: 298.8 MB / 0.5231 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4261/1.979, allocations: 191 MB / 0.7096 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008295/1.98, allocations: 12.75 kB / 0.7096 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005546/1.98, allocations: 169.8 kB / 0.7098 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001245/1.982, allocations: 443.3 kB / 0.7102 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0218/2.004, allocations: 9.883 MB / 0.7198 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001614/2.005, allocations: 1.851 MB / 0.7216 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007822/2.006, allocations: 0.8954 MB / 0.7225 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005078/2.006, allocations: 0.5904 MB / 0.7231 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005073/2.007, allocations: 0.6808 MB / 0.7238 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001056/2.007, allocations: 87.08 kB / 0.7238 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02463/2.032, allocations: 18.16 MB / 0.7416 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000332/2.032, allocations: 286.4 kB / 0.7419 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008855/2.033, allocations: 0.8081 MB / 0.7426 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01766/2.051, allocations: 10.76 MB / 0.7531 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/2.051, allocations: 0 / 0.7531 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.823e-06/2.051, allocations: 0 / 0.7531 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.657e-05/2.051, allocations: 0 / 0.7531 GB, free: 14.75 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.004601/2.055, allocations: 2.549 MB / 0.7556 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/2.055, allocations: 8.625 kB / 0.7556 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003877/2.056, allocations: 283 kB / 0.7559 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00038/2.056, allocations: 197.2 kB / 0.7561 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/2.057, allocations: 0.6333 MB / 0.7567 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/2.057, allocations: 151.8 kB / 0.7569 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002397/2.058, allocations: 187.4 kB / 0.757 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003678/2.061, allocations: 2.058 MB / 0.7591 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.844e-05/2.061, allocations: 8.219 kB / 0.7591 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001687/2.062, allocations: 86.77 kB / 0.7591 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-05/2.062, allocations: 52.34 kB / 0.7592 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/2.064, allocations: 1.2 MB / 0.7604 GB, free: 11.53 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.01216/2.077, allocations: 13.19 MB / 0.7732 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000661/2.077, allocations: 296.9 kB / 0.7735 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/2.078, allocations: 128.5 kB / 0.7736 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3136/2.391, allocations: 179.6 MB / 0.9491 GB, free: 13.85 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/2.391, allocations: 36.84 kB / 0.9491 GB, free: 13.81 MB / 0.795 GB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/2.391, allocations: 0 / 0.9491 GB, free: 13.81 MB / 0.795 GB Notification: Performance of matching and sorting (n=37): time 0.002554/2.394, allocations: 1.055 MB / 0.9501 GB, free: 12.84 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/2.394, allocations: 58.31 kB / 0.9502 GB, free: 12.78 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/2.395, allocations: 1.038 MB / 0.9512 GB, free: 11.98 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/2.395, allocations: 30.56 kB / 0.9512 GB, free: 11.95 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004523/2.395, allocations: 0.8398 MB / 0.952 GB, free: 11.29 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 8.802e-05/2.396, allocations: 148.8 kB / 0.9522 GB, free: 11.17 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/2.396, allocations: 129.8 kB / 0.9523 GB, free: 11.05 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001478/2.396, allocations: 406.7 kB / 0.9527 GB, free: 10.64 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003515/2.396, allocations: 218.5 kB / 0.9529 GB, free: 10.43 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006718/2.397, allocations: 0.8323 MB / 0.9537 GB, free: 9.301 MB / 0.795 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.004493/2.401, allocations: 2.152 MB / 0.9558 GB, free: 6.965 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/2.401, allocations: 12 kB / 0.9558 GB, free: 6.953 MB / 0.795 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00195/2.403, allocations: 1.261 MB / 0.9571 GB, free: 5.812 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/2.403, allocations: 16 kB / 0.9571 GB, free: 5.797 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/2.403, allocations: 23.94 kB / 0.9571 GB, free: 5.773 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/2.404, allocations: 0.5008 MB / 0.9576 GB, free: 5.27 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/2.405, allocations: 192.2 kB / 0.9578 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/2.406, allocations: 1.904 MB / 0.9596 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008519/2.407, allocations: 249.8 kB / 0.9599 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.185e-05/2.407, allocations: 67.98 kB / 0.9599 GB, free: 2.828 MB / 0.795 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: 99 * Number of states: 0 () * Number of discrete variables: 36 (sourcePlug.fluid1,sourcePlug.C.ftype,StaticDrumTh1.Cs_sur.ftype,StaticDrumTh1.Cs_purg.ftype,StaticDrumTh1.Cs_sup.ftype,StaticDrumTh1.Cs_eva.ftype,StaticDrumTh1.Ce_eva.ftype,StaticDrumTh1.Ce_sup.ftype,StaticDrumTh1.Ce_steam.ftype,StaticDrumTh1.fluids[1],sinkP2.fluid1,singularPressureLossVALI1.fluid,singularPressureLossVALI2.fluid,sinkP1.fluid,sensorT.fluid,singularPressureLossVALI3.fluid,sensorT1.fluid,StaticDrumTh1.Ce_eco.diff_on_2,refXgas.C1.diff_on_2,singularPressureLossVALI2.C2.diff_on_1,StaticDrumTh1.Cs_sur.diff_on_2,StaticDrumTh1.Cs_sur.diff_on_1,sensorT1.C2.diff_on_1,StaticDrumTh1.Cs_purg.diff_on_2,StaticDrumTh1.Cs_purg.diff_on_1,singularPressureLossVALI1.C2.diff_on_1,StaticDrumTh1.Cs_sup.diff_on_1,StaticDrumTh1.Cs_eva.diff_on_1,StaticDrumTh1.Ce_eva.diff_on_2,StaticDrumTh1.Ce_sup.diff_on_2,StaticDrumTh1.Ce_steam.diff_on_2,StaticDrumTh1.Cs_sup.diff_on_2,StaticDrumTh1.Cs_eva.diff_on_2,StaticDrumTh1.Ce_eva.diff_on_1,StaticDrumTh1.Ce_sup.diff_on_1,StaticDrumTh1.Ce_steam.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * 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), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004149/2.408, allocations: 330.1 kB / 0.9603 GB, free: 2.516 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/2.408, allocations: 106.7 kB / 0.9604 GB, free: 2.41 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/2.409, allocations: 0.5605 MB / 0.9609 GB, free: 1.844 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/2.409, allocations: 4 kB / 0.9609 GB, free: 1.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/2.409, allocations: 0 / 0.9609 GB, free: 1.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/2.409, allocations: 3.984 kB / 0.9609 GB, free: 1.836 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009321/2.41, allocations: 0.904 MB / 0.9618 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/2.41, allocations: 4 kB / 0.9618 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/2.41, allocations: 27.97 kB / 0.9618 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008782/2.411, allocations: 464.8 kB / 0.9623 GB, free: 408 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/2.411, allocations: 4 kB / 0.9623 GB, free: 404 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/2.412, allocations: 1.853 MB / 0.9641 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.412, allocations: 4.031 kB / 0.9641 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009263/2.413, allocations: 0.6187 MB / 0.9647 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/2.413, allocations: 222.5 kB / 0.9649 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/2.413, allocations: 4 kB / 0.9649 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/2.413, allocations: 4 kB / 0.9649 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/2.413, allocations: 19.97 kB / 0.9649 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/2.413, allocations: 15.94 kB / 0.9649 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006894/2.414, allocations: 0.6479 MB / 0.9656 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/2.414, allocations: 0 / 0.9656 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003384/2.418, allocations: 1.603 MB / 0.9671 GB, free: 11.29 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 (10): * Single equations (assignments): 7 * 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), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005376/2.423, allocations: 3.114 MB / 0.9702 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001086/2.424, allocations: 0.6667 MB / 0.9708 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/2.424, allocations: 4.312 kB / 0.9708 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004078/2.424, allocations: 215.8 kB / 0.971 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/2.426, allocations: 289 kB / 0.9713 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.155/2.581, allocations: 10.51 MB / 0.9816 GB, free: 455.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/2.581, allocations: 1.124 MB / 0.9827 GB, free: 455 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005073/2.582, allocations: 148.9 kB / 0.9828 GB, free: 455 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/2.582, allocations: 0.5032 MB / 0.9833 GB, free: 455 MB / 0.8106 GB Notification: Performance of SimCode: time 8.22e-07/2.582, allocations: 0.625 kB / 0.9833 GB, free: 455 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.969/6.551, allocations: 64.14 MB / 1.046 GB, free: 419 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/6.552, allocations: 286.7 kB / 1.046 GB, free: 418.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.509/11.06, allocations: 4.062 kB / 1.046 GB, free: 418.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum1.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum1.pipe 2>&1)