Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.8587/0.8587, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003306, allocations: 14.09 kB / 237.1 MB, free: 1.848 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05715/0.05749, allocations: 31.35 MB / 268.4 MB, free: 7.098 MB / 222.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.621/1.679, allocations: 294.7 MB / 0.5499 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4771/2.156, allocations: 187.7 MB / 0.7333 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/2.156, allocations: 7.312 kB / 0.7333 GB, free: 1.805 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003231/2.156, allocations: 94.08 kB / 0.7334 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004191/2.157, allocations: 170.2 kB / 0.7335 GB, free: 1.805 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.03109/2.188, allocations: 11.47 MB / 0.7447 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007707/2.189, allocations: 425.2 kB / 0.7451 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003719/2.189, allocations: 214.2 kB / 0.7453 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002826/2.189, allocations: 181.7 kB / 0.7455 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/2.19, allocations: 223.1 kB / 0.7457 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.61e-05/2.19, allocations: 36.12 kB / 0.7457 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03748/2.227, allocations: 19.96 MB / 0.7652 GB, free: 0.9336 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001716/2.228, allocations: 102.8 kB / 0.7653 GB, free: 0.918 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003006/2.228, allocations: 215 kB / 0.7655 GB, free: 0.9062 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02403/2.252, allocations: 9.901 MB / 0.7752 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/2.252, allocations: 0.9062 kB / 0.7752 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.864e-06/2.252, allocations: 0 / 0.7752 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.001e-05/2.252, allocations: 0 / 0.7752 GB, free: 13.45 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004805/2.257, allocations: 1.833 MB / 0.777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/2.257, allocations: 11.83 kB / 0.777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.906e-05/2.257, allocations: 57.17 kB / 0.7771 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/2.257, allocations: 353.5 kB / 0.7774 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/2.257, allocations: 32.83 kB / 0.7774 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/2.257, allocations: 32.16 kB / 0.7775 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/2.258, allocations: 380 kB / 0.7778 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/2.258, allocations: 2 kB / 0.7778 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/2.258, allocations: 13.16 kB / 0.7778 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/2.258, allocations: 13.16 kB / 0.7779 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003859/2.258, allocations: 267.2 kB / 0.7781 GB, free: 11.77 MB / 0.6075 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.00829/2.267, allocations: 6.204 MB / 0.7842 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/2.267, allocations: 111.9 kB / 0.7843 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.679e-05/2.267, allocations: 54.75 kB / 0.7843 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2428/2.51, allocations: 119 MB / 0.9005 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/2.51, allocations: 34.56 kB / 0.9006 GB, free: 8.973 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 3.146e-06/2.51, allocations: 0 / 0.9006 GB, free: 8.973 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008994/2.511, allocations: 311.2 kB / 0.9009 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/2.511, allocations: 55.41 kB / 0.9009 GB, free: 8.582 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005305/2.511, allocations: 421.4 kB / 0.9013 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/2.511, allocations: 29.7 kB / 0.9013 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.00018/2.512, allocations: 261.9 kB / 0.9016 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/2.512, allocations: 27.64 kB / 0.9016 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.889e-05/2.512, allocations: 60.8 kB / 0.9017 GB, free: 7.777 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001178/2.512, allocations: 354.6 kB / 0.902 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/2.512, allocations: 59.97 kB / 0.9021 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/2.512, allocations: 160.1 kB / 0.9022 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/2.512, allocations: 236.9 kB / 0.9025 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/2.512, allocations: 0 / 0.9025 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005854/2.513, allocations: 311.5 kB / 0.9028 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/2.513, allocations: 8 kB / 0.9028 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/2.513, allocations: 4 kB / 0.9028 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008333/2.514, allocations: 119.8 kB / 0.9029 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/2.514, allocations: 43.02 kB / 0.9029 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004727/2.515, allocations: 0.5593 MB / 0.9035 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/2.515, allocations: 31.59 kB / 0.9035 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/2.515, allocations: 19.98 kB / 0.9035 GB, free: 5.82 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001788/2.515, allocations: 174 kB / 0.9037 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.651e-05/2.515, allocations: 35.56 kB / 0.9037 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004699/2.516, allocations: 205.1 kB / 0.9039 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/2.516, allocations: 0 / 0.9039 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/2.516, allocations: 3.094 kB / 0.9039 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/2.516, allocations: 3.984 kB / 0.9039 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/2.516, allocations: 364.8 kB / 0.9043 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/2.516, allocations: 0 / 0.9043 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.69e-05/2.516, allocations: 4 kB / 0.9043 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004525/2.516, allocations: 76.64 kB / 0.9043 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/2.516, allocations: 0 / 0.9043 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004131/2.517, allocations: 0.5687 MB / 0.9049 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/2.517, allocations: 0 / 0.9049 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/2.517, allocations: 205.5 kB / 0.9051 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.371e-05/2.517, allocations: 116.7 kB / 0.9052 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/2.517, allocations: 1.203 kB / 0.9052 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.084e-05/2.517, allocations: 5.688 kB / 0.9052 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.669e-05/2.518, allocations: 11.11 kB / 0.9052 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/2.518, allocations: 4 kB / 0.9052 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003338/2.518, allocations: 299.1 kB / 0.9055 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.41e-07/2.518, allocations: 4 kB / 0.9055 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003806/2.522, allocations: 1.468 MB / 0.9069 GB, free: 2.191 MB / 0.7325 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 (4): * Single equations (assignments): 3 * 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.007486/2.529, allocations: 2.225 MB / 0.9091 GB, free: 256 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005628/2.53, allocations: 165.4 kB / 0.9093 GB, free: 104 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/2.53, allocations: 0.875 kB / 0.9093 GB, free: 104 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001863/2.53, allocations: 67.02 kB / 0.9093 GB, free: 40 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/2.531, allocations: 69.84 kB / 0.9094 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/2.532, allocations: 0.5954 MB / 0.91 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/2.532, allocations: 0.7951 MB / 0.9108 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001625/2.532, allocations: 44.97 kB / 0.9108 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.547e-05/2.532, allocations: 30.62 kB / 0.9108 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/2.532, allocations: 4 kB / 0.9108 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of Templates: time 0.06267/2.595, allocations: 46.24 MB / 0.956 GB, free: 284 kB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)