Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.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.TestStaticDrum2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum2",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.8483/0.8483, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.586e-05/1.588e-05, allocations: 4 kB / 204.9 MB, free: 9.949 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1769, allocations: 31.98 MB / 236.8 MB, free: 5.371 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.TestStaticDrum2): time 1.523/1.7, allocations: 298 MB / 0.5223 GB, free: 9.832 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.438/2.138, allocations: 190.8 MB / 0.7087 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006924/2.139, allocations: 12.09 kB / 0.7087 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003672/2.139, allocations: 150.1 kB / 0.7088 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008875/2.14, allocations: 391.6 kB / 0.7092 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02291/2.163, allocations: 9.853 MB / 0.7188 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001702/2.164, allocations: 1.621 MB / 0.7204 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000693/2.165, allocations: 0.6985 MB / 0.7211 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005517/2.166, allocations: 0.5225 MB / 0.7216 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004537/2.166, allocations: 0.5998 MB / 0.7222 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.269e-05/2.166, allocations: 73.53 kB / 0.7223 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02653/2.193, allocations: 18.15 MB / 0.74 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003507/2.193, allocations: 256.6 kB / 0.7402 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008/2.194, allocations: 0.6945 MB / 0.7409 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01829/2.212, allocations: 10.37 MB / 0.7511 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/2.212, allocations: 0 / 0.7511 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.434e-06/2.212, allocations: 0 / 0.7511 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.986e-05/2.212, allocations: 1.75 kB / 0.7511 GB, free: 15.04 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: 426 * Number of variables: 426 Notification: Performance of Generate backend data structure: time 0.004983/2.217, allocations: 2.395 MB / 0.7534 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/2.217, allocations: 9.438 kB / 0.7534 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002009/2.218, allocations: 239.2 kB / 0.7536 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/2.218, allocations: 178.7 kB / 0.7538 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006576/2.218, allocations: 0.5999 MB / 0.7544 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.178e-05/2.219, allocations: 125.3 kB / 0.7545 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/2.219, allocations: 156.1 kB / 0.7547 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002081/2.221, allocations: 1.76 MB / 0.7564 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/2.221, allocations: 8.375 kB / 0.7564 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.353e-05/2.221, allocations: 69.03 kB / 0.7564 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/2.221, allocations: 48.02 kB / 0.7565 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/2.222, allocations: 1.064 MB / 0.7575 GB, free: 12.06 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.07864/2.301, allocations: 42.28 MB / 0.7988 GB, free: 6.555 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004442/2.302, allocations: 272.4 kB / 0.7991 GB, free: 6.383 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/2.302, allocations: 124.9 kB / 0.7992 GB, free: 6.309 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3095/2.611, allocations: 153.3 MB / 0.9489 GB, free: 15.63 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/2.611, allocations: 33.47 kB / 0.949 GB, free: 15.59 MB / 0.795 GB Notification: Performance of pre-optimization done (n=38): time 2.274e-06/2.611, allocations: 0 / 0.949 GB, free: 15.59 MB / 0.795 GB Notification: Performance of matching and sorting (n=38): time 0.00224/2.614, allocations: 0.9658 MB / 0.9499 GB, free: 14.71 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/2.614, allocations: 55.41 kB / 0.95 GB, free: 14.64 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008874/2.614, allocations: 0.8102 MB / 0.9507 GB, free: 14.02 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/2.614, allocations: 25.7 kB / 0.9508 GB, free: 13.98 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000412/2.615, allocations: 0.7693 MB / 0.9515 GB, free: 13.34 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/2.615, allocations: 149.4 kB / 0.9517 GB, free: 13.22 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/2.615, allocations: 126 kB / 0.9518 GB, free: 13.14 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001359/2.615, allocations: 391 kB / 0.9522 GB, free: 12.78 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/2.616, allocations: 201.6 kB / 0.9524 GB, free: 12.65 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006877/2.616, allocations: 0.8584 MB / 0.9532 GB, free: 11.57 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/2.617, allocations: 1.163 MB / 0.9543 GB, free: 10.37 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/2.617, allocations: 8 kB / 0.9543 GB, free: 10.36 MB / 0.795 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.001946/2.619, allocations: 1.238 MB / 0.9555 GB, free: 9.504 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/2.619, allocations: 12 kB / 0.9556 GB, free: 9.492 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.073e-05/2.619, allocations: 27.94 kB / 0.9556 GB, free: 9.465 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/2.62, allocations: 475.9 kB / 0.956 GB, free: 9.051 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/2.621, allocations: 204.7 kB / 0.9562 GB, free: 8.879 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/2.622, allocations: 1.825 MB / 0.958 GB, free: 7.094 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008098/2.623, allocations: 223.9 kB / 0.9582 GB, free: 6.891 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.678e-05/2.623, allocations: 67.94 kB / 0.9583 GB, free: 6.832 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 36 (StaticDrumTh1.Cs_sur.ftype,sourcePQ.C.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],singularPressureLossVALI1.fluid,singularPressureLossVALI2.fluid,sinkP1.fluid,sensorT.fluid,singularPressureLossVALI3.fluid,sinkP2.fluid,sensorT1.fluid,sourcePQ.fluid1,StaticDrumTh1.Cs_sur.diff_on_2,StaticDrumTh1.Cs_sur.diff_on_1,sensorT1.C2.diff_on_1,singularPressureLossVALI2.C2.diff_on_1,StaticDrumTh1.Ce_eco.diff_on_2,sensorT.C1.diff_on_2,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 (129): * Single equations (assignments): 126 * 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), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004004/2.623, allocations: 318.2 kB / 0.9586 GB, free: 6.598 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.522e-05/2.623, allocations: 86.91 kB / 0.9587 GB, free: 6.512 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/2.625, allocations: 0.5589 MB / 0.9592 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/2.625, allocations: 3.984 kB / 0.9592 GB, free: 5.941 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.625, allocations: 5.844 kB / 0.9592 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/2.625, allocations: 0 / 0.9592 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008867/2.626, allocations: 0.7917 MB / 0.96 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/2.626, allocations: 4 kB / 0.96 GB, free: 5.098 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.473e-05/2.626, allocations: 27.45 kB / 0.96 GB, free: 5.074 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000794/2.626, allocations: 423.3 kB / 0.9604 GB, free: 4.656 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/2.626, allocations: 8 kB / 0.9604 GB, free: 4.648 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/2.628, allocations: 1.764 MB / 0.9622 GB, free: 2.812 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.628, allocations: 0 / 0.9622 GB, free: 2.812 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/2.629, allocations: 0.6114 MB / 0.9628 GB, free: 2.188 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/2.629, allocations: 184 kB / 0.9629 GB, free: 1.988 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.747e-05/2.629, allocations: 4 kB / 0.9629 GB, free: 1.984 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/2.629, allocations: 15.98 kB / 0.963 GB, free: 1.969 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/2.629, allocations: 11.98 kB / 0.963 GB, free: 1.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/2.629, allocations: 21.8 kB / 0.963 GB, free: 1.938 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005573/2.63, allocations: 499 kB / 0.9635 GB, free: 1.457 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.51e-07/2.63, allocations: 0 / 0.9635 GB, free: 1.457 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004123/2.634, allocations: 1.564 MB / 0.965 GB, free: 15.89 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 (14): * Single equations (assignments): 11 * 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), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005945/2.64, allocations: 3.061 MB / 0.968 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001093/2.641, allocations: 0.6328 MB / 0.9686 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.641, allocations: 0 / 0.9686 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003386/2.641, allocations: 192.8 kB / 0.9688 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008059/2.642, allocations: 172.9 kB / 0.969 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/2.652, allocations: 8.796 MB / 0.9775 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/2.653, allocations: 1.059 MB / 0.9786 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004853/2.653, allocations: 146.8 kB / 0.9787 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004186/2.654, allocations: 435.3 kB / 0.9791 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of SimCode: time 1.252e-06/2.654, allocations: 4 kB / 0.9791 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2472/2.901, allocations: 58.28 MB / 1.036 GB, free: 430.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001435/2.901, allocations: 287 kB / 1.036 GB, free: 429.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.137/7.038, allocations: 1.969 kB / 1.036 GB, free: 429.9 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticDrum2.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.pipe 2>&1)