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.7558/0.7558, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.00031, allocations: 15.62 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04733/0.04766, allocations: 31.35 MB / 269.1 MB, free: 7.113 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.448/1.496, allocations: 294.7 MB / 0.5506 GB, free: 13.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.425/1.921, allocations: 187.7 MB / 0.7339 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/1.921, allocations: 8.031 kB / 0.7339 GB, free: 1.766 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.0002308/1.922, allocations: 91.95 kB / 0.734 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003207/1.922, allocations: 170.6 kB / 0.7342 GB, free: 1.766 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.02439/1.946, allocations: 11.47 MB / 0.7454 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004121/1.947, allocations: 423.8 kB / 0.7458 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/1.947, allocations: 220.5 kB / 0.746 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/1.947, allocations: 177.1 kB / 0.7462 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/1.947, allocations: 222.9 kB / 0.7464 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.034e-05/1.947, allocations: 34.69 kB / 0.7464 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02721/1.975, allocations: 19.96 MB / 0.7659 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 9.987e-05/1.975, allocations: 104.4 kB / 0.766 GB, free: 0.8711 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000184/1.975, allocations: 209.8 kB / 0.7662 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01556/1.99, allocations: 9.92 MB / 0.7759 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/1.99, allocations: 0.9688 kB / 0.7759 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.102e-06/1.99, allocations: 0 / 0.7759 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.125e-06/1.991, allocations: 3.281 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.003922/1.994, allocations: 1.834 MB / 0.7777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/1.994, allocations: 12.33 kB / 0.7777 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.214e-05/1.995, allocations: 53.62 kB / 0.7778 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/1.995, allocations: 357 kB / 0.7781 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/1.995, allocations: 30.7 kB / 0.7781 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/1.995, allocations: 33.38 kB / 0.7782 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/1.996, allocations: 376.8 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/1.996, allocations: 0.9062 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/1.996, allocations: 15.12 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/1.996, allocations: 13.34 kB / 0.7785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/1.996, allocations: 265 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.007452/2.003, allocations: 6.202 MB / 0.7849 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/2.004, allocations: 116 kB / 0.785 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.216e-05/2.004, allocations: 49.19 kB / 0.785 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.219/2.223, allocations: 119 MB / 0.9012 GB, free: 9 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/2.223, allocations: 41.66 kB / 0.9012 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/2.223, allocations: 0 / 0.9012 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0007577/2.223, allocations: 307.1 kB / 0.9015 GB, free: 8.629 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/2.224, allocations: 58.5 kB / 0.9016 GB, free: 8.562 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004478/2.224, allocations: 421.4 kB / 0.902 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/2.224, allocations: 25.7 kB / 0.902 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/2.224, allocations: 260.3 kB / 0.9023 GB, free: 7.852 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/2.224, allocations: 31.64 kB / 0.9023 GB, free: 7.82 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/2.224, allocations: 57.61 kB / 0.9024 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.945e-05/2.224, allocations: 346.7 kB / 0.9027 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/2.224, allocations: 63.97 kB / 0.9027 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/2.225, allocations: 162.2 kB / 0.9029 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/2.225, allocations: 234 kB / 0.9031 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/2.225, allocations: 4 kB / 0.9031 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005137/2.225, allocations: 311.3 kB / 0.9034 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/2.225, allocations: 8 kB / 0.9034 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/2.225, allocations: 5.875 kB / 0.9034 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007151/2.226, allocations: 118.7 kB / 0.9036 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/2.226, allocations: 39.11 kB / 0.9036 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003984/2.227, allocations: 0.5671 MB / 0.9041 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/2.227, allocations: 31.59 kB / 0.9042 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/2.227, allocations: 17.19 kB / 0.9042 GB, free: 5.801 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.0001472/2.227, allocations: 165.1 kB / 0.9043 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/2.227, allocations: 35.56 kB / 0.9044 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004189/2.228, allocations: 215.8 kB / 0.9046 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/2.228, allocations: 2.625 kB / 0.9046 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/2.228, allocations: 0 / 0.9046 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/2.228, allocations: 3.984 kB / 0.9046 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003045/2.228, allocations: 359.9 kB / 0.9049 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/2.228, allocations: 0 / 0.9049 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/2.228, allocations: 4 kB / 0.9049 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003962/2.228, allocations: 84.83 kB / 0.905 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/2.228, allocations: 0 / 0.905 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003631/2.229, allocations: 0.5602 MB / 0.9056 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/2.229, allocations: 4.688 kB / 0.9056 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/2.229, allocations: 212.3 kB / 0.9058 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.639e-05/2.229, allocations: 108.7 kB / 0.9059 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/2.229, allocations: 3.938 kB / 0.9059 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.204e-05/2.229, allocations: 8 kB / 0.9059 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/2.229, allocations: 10.55 kB / 0.9059 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/2.229, allocations: 4 kB / 0.9059 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000286/2.23, allocations: 296.3 kB / 0.9062 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/2.23, allocations: 8 kB / 0.9062 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002896/2.233, allocations: 1.464 MB / 0.9076 GB, free: 2.172 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.005644/2.238, allocations: 2.222 MB / 0.9098 GB, free: 244 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003678/2.239, allocations: 168.5 kB / 0.91 GB, free: 88 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/2.239, allocations: 0.875 kB / 0.91 GB, free: 88 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001569/2.239, allocations: 63.56 kB / 0.91 GB, free: 28 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/2.239, allocations: 73.58 kB / 0.9101 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008557/2.24, allocations: 0.6244 MB / 0.9107 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/2.24, allocations: 0.799 MB / 0.9115 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.561e-05/2.24, allocations: 27.44 kB / 0.9115 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of SimCode: time 7.82e-07/2.24, allocations: 0 / 0.9115 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of Templates: time 0.03299/2.273, allocations: 29.94 MB / 0.9407 GB, free: 0.5195 MB / 0.7637 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)