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.8512/0.8512, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003548, allocations: 18 kB / 237.7 MB, free: 1.949 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05672/0.05709, allocations: 31.35 MB / 269.1 MB, free: 7.215 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.653/1.711, allocations: 294.7 MB / 0.5506 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4971/2.208, allocations: 187.7 MB / 0.7339 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/2.208, allocations: 9.469 kB / 0.7339 GB, free: 1.785 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.0002684/2.208, allocations: 99.92 kB / 0.734 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003134/2.209, allocations: 166.5 kB / 0.7342 GB, free: 1.785 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.02917/2.238, allocations: 11.47 MB / 0.7454 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004914/2.238, allocations: 429.6 kB / 0.7458 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/2.239, allocations: 211.4 kB / 0.746 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/2.239, allocations: 183 kB / 0.7462 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/2.239, allocations: 217.3 kB / 0.7464 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.415e-05/2.239, allocations: 34.38 kB / 0.7464 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03327/2.272, allocations: 19.97 MB / 0.7659 GB, free: 0.9805 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001781/2.272, allocations: 110.1 kB / 0.766 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002878/2.273, allocations: 208.2 kB / 0.7662 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02371/2.296, allocations: 9.882 MB / 0.7759 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/2.297, allocations: 3.984 kB / 0.7759 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.174e-06/2.297, allocations: 0.8125 kB / 0.7759 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.204e-05/2.297, allocations: 1.203 kB / 0.7759 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.004788/2.301, allocations: 1.836 MB / 0.7777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/2.301, allocations: 12.3 kB / 0.7777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.399e-05/2.302, allocations: 54.47 kB / 0.7777 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/2.302, allocations: 356.5 kB / 0.7781 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/2.302, allocations: 25.19 kB / 0.7781 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/2.302, allocations: 31.47 kB / 0.7781 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/2.303, allocations: 384.8 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/2.303, allocations: 3.094 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/2.303, allocations: 14.91 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/2.303, allocations: 14.09 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003798/2.303, allocations: 260.3 kB / 0.7788 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.007949/2.311, allocations: 6.205 MB / 0.7848 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/2.311, allocations: 116 kB / 0.7849 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.058e-05/2.311, allocations: 50.95 kB / 0.785 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2318/2.543, allocations: 119 MB / 0.9012 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/2.543, allocations: 34.56 kB / 0.9012 GB, free: 9.039 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.875e-06/2.543, allocations: 0 / 0.9012 GB, free: 9.039 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.001011/2.544, allocations: 310.5 kB / 0.9015 GB, free: 8.746 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/2.544, allocations: 55.41 kB / 0.9016 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000562/2.545, allocations: 421.3 kB / 0.902 GB, free: 8.32 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/2.545, allocations: 29.7 kB / 0.902 GB, free: 8.285 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/2.545, allocations: 261.8 kB / 0.9022 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/2.545, allocations: 28.67 kB / 0.9023 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/2.545, allocations: 61.61 kB / 0.9023 GB, free: 7.938 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001229/2.545, allocations: 346.7 kB / 0.9027 GB, free: 7.59 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/2.545, allocations: 59.97 kB / 0.9027 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/2.546, allocations: 163 kB / 0.9029 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/2.546, allocations: 234.8 kB / 0.9031 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/2.546, allocations: 0 / 0.9031 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000541/2.546, allocations: 313.3 kB / 0.9034 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/2.546, allocations: 10.03 kB / 0.9034 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/2.546, allocations: 4 kB / 0.9034 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007896/2.547, allocations: 121.9 kB / 0.9035 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/2.547, allocations: 42.11 kB / 0.9036 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004489/2.548, allocations: 0.5671 MB / 0.9041 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/2.548, allocations: 31.59 kB / 0.9041 GB, free: 6 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/2.548, allocations: 15.98 kB / 0.9042 GB, free: 5.984 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.0001583/2.548, allocations: 165.8 kB / 0.9043 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/2.548, allocations: 36.77 kB / 0.9044 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004507/2.549, allocations: 219.2 kB / 0.9046 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/2.549, allocations: 0 / 0.9046 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/2.549, allocations: 3.984 kB / 0.9046 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.544e-05/2.549, allocations: 104.7 kB / 0.9047 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/2.549, allocations: 0 / 0.9047 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-05/2.549, allocations: 4 kB / 0.9047 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/2.549, allocations: 11.92 kB / 0.9047 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003612/2.549, allocations: 238 kB / 0.9049 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003109/2.55, allocations: 379.8 kB / 0.9053 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.165e-05/2.55, allocations: 36.03 kB / 0.9053 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002935/2.55, allocations: 295.1 kB / 0.9056 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of Backend: time 5.21e-07/2.55, allocations: 0 / 0.9056 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01338/2.563, allocations: 3.546 MB / 0.909 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of SimCode: time 0.001751/2.565, allocations: 1.117 MB / 0.9101 GB, free: 232 kB / 0.7325 GB Notification: Performance of Templates: time 0.09078/2.656, allocations: 72.59 MB / 0.981 GB, free: 7.668 MB / 0.8106 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)