Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8214/0.8214, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002773/0.0002773, allocations: 19.97 kB / 204 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1502, allocations: 31.32 MB / 235.4 MB, free: 5.441 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.57/1.721, allocations: 292.6 MB / 0.5156 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04183/1.763, allocations: 37.92 MB / 0.5526 GB, free: 8.078 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/1.763, allocations: 4 kB / 0.5526 GB, free: 8.074 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004182/1.763, allocations: 131.5 kB / 0.5528 GB, free: 7.945 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/1.763, allocations: 135.2 kB / 0.5529 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02024/1.784, allocations: 7.276 MB / 0.56 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000602/1.784, allocations: 366.4 kB / 0.5603 GB, free: 180 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/1.784, allocations: 126.8 kB / 0.5605 GB, free: 52 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/1.785, allocations: 147.3 kB / 0.5606 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/1.785, allocations: 167.4 kB / 0.5608 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/1.785, allocations: 12 kB / 0.5608 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03047/1.815, allocations: 17.8 MB / 0.5781 GB, free: 13.91 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/1.816, allocations: 75.7 kB / 0.5782 GB, free: 13.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/1.816, allocations: 159 kB / 0.5784 GB, free: 13.68 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01948/1.835, allocations: 8.531 MB / 0.5867 GB, free: 5.129 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/1.835, allocations: 0 / 0.5867 GB, free: 5.129 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/1.835, allocations: 0 / 0.5867 GB, free: 5.129 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/1.835, allocations: 0 / 0.5867 GB, free: 5.129 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004113/1.84, allocations: 1.53 MB / 0.5882 GB, free: 3.551 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/1.84, allocations: 12.03 kB / 0.5882 GB, free: 3.539 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.495e-05/1.84, allocations: 47.38 kB / 0.5883 GB, free: 3.492 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/1.84, allocations: 282.2 kB / 0.5885 GB, free: 3.18 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/1.84, allocations: 16.44 kB / 0.5885 GB, free: 3.16 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/1.84, allocations: 20 kB / 0.5886 GB, free: 3.141 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000441/1.841, allocations: 315.4 kB / 0.5889 GB, free: 2.809 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/1.841, allocations: 4 kB / 0.5889 GB, free: 2.805 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/1.841, allocations: 12 kB / 0.5889 GB, free: 2.793 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/1.841, allocations: 15.98 kB / 0.5889 GB, free: 2.777 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002785/1.841, allocations: 205 kB / 0.5891 GB, free: 2.578 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.03572/1.877, allocations: 18.12 MB / 0.6068 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/1.877, allocations: 138.5 kB / 0.6069 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/1.877, allocations: 108.8 kB / 0.607 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1418/2.019, allocations: 77.29 MB / 0.6825 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/2.019, allocations: 30.56 kB / 0.6825 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.525e-06/2.019, allocations: 0 / 0.6825 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001166/2.02, allocations: 0.4914 MB / 0.683 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/2.02, allocations: 51.41 kB / 0.6831 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003665/2.02, allocations: 352.5 kB / 0.6834 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/2.02, allocations: 33.7 kB / 0.6834 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/2.021, allocations: 192.4 kB / 0.6836 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/2.021, allocations: 102.4 kB / 0.6837 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/2.021, allocations: 53.59 kB / 0.6838 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001237/2.021, allocations: 346.8 kB / 0.6841 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/2.021, allocations: 91.95 kB / 0.6842 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/2.021, allocations: 133.4 kB / 0.6843 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/2.021, allocations: 260.5 kB / 0.6846 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/2.021, allocations: 0 / 0.6846 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004454/2.022, allocations: 341.6 kB / 0.6849 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/2.022, allocations: 12 kB / 0.6849 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/2.022, allocations: 0 / 0.6849 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008372/2.023, allocations: 136.7 kB / 0.685 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.556e-05/2.023, allocations: 11.94 kB / 0.685 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005095/2.023, allocations: 0.6193 MB / 0.6856 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/2.024, allocations: 27.59 kB / 0.6857 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/2.024, allocations: 8.891 kB / 0.6857 GB, free: 4.867 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001641/2.024, allocations: 159 kB / 0.6858 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/2.024, allocations: 31.56 kB / 0.6859 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008115/2.025, allocations: 0.6629 MB / 0.6865 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004158/2.025, allocations: 254.4 kB / 0.6867 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/2.025, allocations: 0 / 0.6867 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/2.025, allocations: 0 / 0.6867 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/2.026, allocations: 0.8341 MB / 0.6876 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/2.026, allocations: 0 / 0.6876 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.963e-05/2.026, allocations: 12 kB / 0.6876 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005041/2.027, allocations: 124.7 kB / 0.6877 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/2.027, allocations: 4 kB / 0.6877 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000477/2.027, allocations: 0.6395 MB / 0.6883 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/2.027, allocations: 3.938 kB / 0.6883 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000483/2.028, allocations: 388.8 kB / 0.6887 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.669e-05/2.028, allocations: 128.6 kB / 0.6888 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.195e-05/2.028, allocations: 3.906 kB / 0.6888 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/2.028, allocations: 8 kB / 0.6888 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/2.028, allocations: 15.86 kB / 0.6888 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-06/2.028, allocations: 4 kB / 0.6888 GB, free: 1.402 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003421/2.028, allocations: 339.1 kB / 0.6892 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/2.028, allocations: 0 / 0.6892 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1691/2.197, allocations: 1.196 MB / 0.6903 GB, free: 226.3 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00582/2.203, allocations: 1.8 MB / 0.6921 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007193/2.204, allocations: 280.9 kB / 0.6924 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/2.204, allocations: 0.6875 kB / 0.6924 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002942/2.204, allocations: 116.3 kB / 0.6925 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000837/2.205, allocations: 120.2 kB / 0.6926 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/2.206, allocations: 0.774 MB / 0.6933 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/2.207, allocations: 0.8064 MB / 0.6941 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001233/2.207, allocations: 36.77 kB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.657e-05/2.207, allocations: 26.78 kB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/2.207, allocations: 1 kB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of Templates: time 0.04796/2.255, allocations: 43.08 MB / 0.7363 GB, free: 203.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)