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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8487/0.8487, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.982e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2139, allocations: 31.98 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.Fluid.Examples.SimpleExamples.TestStaticDrum2): time 1.778/1.992, allocations: 297 MB / 0.5213 GB, free: 9.984 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6283/2.62, allocations: 190.8 MB / 0.7077 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/2.622, allocations: 15.88 kB / 0.7077 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005679/2.622, allocations: 141.6 kB / 0.7078 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001734/2.624, allocations: 387.9 kB / 0.7082 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03452/2.659, allocations: 9.862 MB / 0.7178 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002358/2.661, allocations: 1.619 MB / 0.7194 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008328/2.662, allocations: 0.7031 MB / 0.7201 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007392/2.663, allocations: 0.5212 MB / 0.7206 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006051/2.663, allocations: 0.6001 MB / 0.7212 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/2.663, allocations: 71.19 kB / 0.7212 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03493/2.698, allocations: 18.14 MB / 0.739 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005478/2.699, allocations: 257.4 kB / 0.7392 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00122/2.7, allocations: 0.6959 MB / 0.7399 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03211/2.732, allocations: 10.38 MB / 0.75 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/2.732, allocations: 0 / 0.75 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.685e-06/2.732, allocations: 0 / 0.75 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.98e-05/2.732, allocations: 0 / 0.75 GB, free: 14.97 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.006822/2.739, allocations: 2.394 MB / 0.7524 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/2.739, allocations: 8.312 kB / 0.7524 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002685/2.739, allocations: 175 kB / 0.7525 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007752/2.74, allocations: 0.6004 MB / 0.7531 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.741e-05/2.74, allocations: 128.6 kB / 0.7532 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/2.74, allocations: 152.6 kB / 0.7534 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/2.743, allocations: 1.76 MB / 0.7551 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/2.743, allocations: 11.81 kB / 0.7551 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/2.743, allocations: 69.5 kB / 0.7552 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.602e-05/2.743, allocations: 40.59 kB / 0.7552 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/2.745, allocations: 1.064 MB / 0.7563 GB, free: 12.07 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.08554/2.83, allocations: 42.27 MB / 0.7976 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/2.831, allocations: 271.3 kB / 0.7978 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/2.831, allocations: 130.3 kB / 0.7979 GB, free: 6.402 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3388/3.17, allocations: 153.3 MB / 0.9477 GB, free: 15.73 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/3.17, allocations: 44.12 kB / 0.9477 GB, free: 15.68 MB / 0.795 GB Notification: Performance of pre-optimization done (n=38): time 2.705e-06/3.17, allocations: 0 / 0.9477 GB, free: 15.68 MB / 0.795 GB Notification: Performance of matching and sorting (n=38): time 0.002609/3.173, allocations: 0.9549 MB / 0.9486 GB, free: 14.8 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/3.173, allocations: 58.59 kB / 0.9487 GB, free: 14.73 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/3.174, allocations: 0.808 MB / 0.9495 GB, free: 14.1 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/3.174, allocations: 33.83 kB / 0.9495 GB, free: 14.07 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005817/3.175, allocations: 0.7691 MB / 0.9503 GB, free: 13.43 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/3.175, allocations: 146.6 kB / 0.9504 GB, free: 13.3 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/3.175, allocations: 123.8 kB / 0.9505 GB, free: 13.22 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001801/3.175, allocations: 389.8 kB / 0.9509 GB, free: 12.87 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/3.176, allocations: 198.2 kB / 0.9511 GB, free: 12.74 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008224/3.177, allocations: 0.8627 MB / 0.9519 GB, free: 11.65 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/3.178, allocations: 1.165 MB / 0.9531 GB, free: 10.46 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.269e-05/3.178, allocations: 8 kB / 0.9531 GB, free: 10.45 MB / 0.795 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002508/3.18, allocations: 1.235 MB / 0.9543 GB, free: 9.594 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/3.181, allocations: 17.56 kB / 0.9543 GB, free: 9.578 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-05/3.181, allocations: 24 kB / 0.9543 GB, free: 9.555 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/3.182, allocations: 480.1 kB / 0.9548 GB, free: 9.137 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005404/3.182, allocations: 203.6 kB / 0.955 GB, free: 8.965 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/3.184, allocations: 1.822 MB / 0.9568 GB, free: 7.184 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/3.185, allocations: 224.8 kB / 0.957 GB, free: 6.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/3.185, allocations: 71.28 kB / 0.957 GB, free: 6.922 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.0005816/3.185, allocations: 316.2 kB / 0.9573 GB, free: 6.703 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/3.186, allocations: 86.91 kB / 0.9574 GB, free: 6.617 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/3.187, allocations: 0.5591 MB / 0.958 GB, free: 6.191 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/3.187, allocations: 4 kB / 0.958 GB, free: 6.188 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/3.187, allocations: 0 / 0.958 GB, free: 6.188 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/3.187, allocations: 3.984 kB / 0.958 GB, free: 6.184 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/3.188, allocations: 0.784 MB / 0.9587 GB, free: 5.367 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/3.188, allocations: 4 kB / 0.9588 GB, free: 5.363 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/3.188, allocations: 19.98 kB / 0.9588 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008793/3.189, allocations: 437.9 kB / 0.9592 GB, free: 4.914 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/3.189, allocations: 8 kB / 0.9592 GB, free: 4.906 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/3.19, allocations: 1.764 MB / 0.9609 GB, free: 3.07 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/3.19, allocations: 0 / 0.9609 GB, free: 3.07 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/3.191, allocations: 0.6033 MB / 0.9615 GB, free: 2.453 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/3.192, allocations: 191.9 kB / 0.9617 GB, free: 2.246 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/3.192, allocations: 4 kB / 0.9617 GB, free: 2.242 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/3.192, allocations: 8 kB / 0.9617 GB, free: 2.234 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/3.192, allocations: 15.97 kB / 0.9617 GB, free: 2.219 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/3.192, allocations: 16 kB / 0.9617 GB, free: 2.203 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0007164/3.193, allocations: 0.495 MB / 0.9622 GB, free: 1.715 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/3.193, allocations: 2.906 kB / 0.9622 GB, free: 1.715 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.005611/3.199, allocations: 1.553 MB / 0.9637 GB, free: 164 kB / 0.795 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.008358/3.207, allocations: 2.112 MB / 0.9658 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001605/3.209, allocations: 0.6339 MB / 0.9664 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/3.209, allocations: 0 / 0.9664 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004037/3.209, allocations: 190.8 kB / 0.9666 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/3.21, allocations: 165.4 kB / 0.9668 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/3.214, allocations: 2.131 MB / 0.9688 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007326/3.215, allocations: 1.07 MB / 0.9699 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000592/3.215, allocations: 142.8 kB / 0.97 GB, free: 10 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/3.215, allocations: 63.42 kB / 0.9701 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of SimCode: time 1.343e-06/3.215, allocations: 0 / 0.9701 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of Templates: time 0.2753/3.491, allocations: 48.36 MB / 1.017 GB, free: 445.2 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.makefile Environment - environmentSimulation: (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticDrum2.pipe 2>&1) Environment - environmentSimulation: