Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7893/0.7893, allocations: 150.9 MB / 166.5 MB, free: 14.37 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003528, allocations: 16.16 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06607/0.06644, allocations: 31.35 MB / 267.9 MB, free: 7.551 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.Examples.SimpleExamples.TestControlValve): time 1.665/1.732, allocations: 294.7 MB / 0.5494 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04423/1.776, allocations: 34.76 MB / 0.5834 GB, free: 10.07 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/1.776, allocations: 4 kB / 0.5834 GB, free: 10.07 MB / 478.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.0005115/1.777, allocations: 155.3 kB / 0.5835 GB, free: 9.914 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/1.777, allocations: 155 kB / 0.5836 GB, free: 9.762 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02605/1.803, allocations: 9.737 MB / 0.5932 GB, free: 12 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006679/1.804, allocations: 386.3 kB / 0.5935 GB, free: 15.63 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/1.804, allocations: 136.6 kB / 0.5937 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/1.805, allocations: 171.3 kB / 0.5938 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/1.805, allocations: 163.4 kB / 0.594 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/1.805, allocations: 20 kB / 0.594 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03188/1.837, allocations: 17.97 MB / 0.6115 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001685/1.837, allocations: 75.77 kB / 0.6116 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002325/1.837, allocations: 163 kB / 0.6118 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0223/1.859, allocations: 8.527 MB / 0.6201 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/1.859, allocations: 0 / 0.6201 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/1.859, allocations: 0 / 0.6201 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.107e-06/1.859, allocations: 0 / 0.6201 GB, free: 4.383 MB / 0.4981 GB 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.004394/1.864, allocations: 1.53 MB / 0.6216 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/1.864, allocations: 8.031 kB / 0.6216 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.114e-05/1.864, allocations: 62.53 kB / 0.6217 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.418e-05/1.864, allocations: 47.47 kB / 0.6217 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/1.864, allocations: 290 kB / 0.622 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/1.864, allocations: 12.44 kB / 0.622 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/1.864, allocations: 24 kB / 0.622 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/1.865, allocations: 315.4 kB / 0.6223 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.865, allocations: 4 kB / 0.6223 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/1.865, allocations: 12 kB / 0.6223 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/1.865, allocations: 15.92 kB / 0.6223 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/1.865, allocations: 205 kB / 0.6225 GB, free: 1.762 MB / 0.4981 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.03849/1.904, allocations: 18.22 MB / 0.6403 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/1.904, allocations: 146.5 kB / 0.6405 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/1.904, allocations: 108.8 kB / 0.6406 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3804/2.284, allocations: 77.74 MB / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/2.285, allocations: 32.09 kB / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.404e-06/2.285, allocations: 0 / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001109/2.286, allocations: 0.4913 MB / 0.717 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/2.286, allocations: 56.28 kB / 0.7171 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/2.286, allocations: 355 kB / 0.7174 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/2.286, allocations: 25.7 kB / 0.7174 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/2.286, allocations: 188.2 kB / 0.7176 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/2.286, allocations: 109.6 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/2.286, allocations: 48.91 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.318e-05/2.286, allocations: 350.4 kB / 0.7181 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/2.287, allocations: 89.72 kB / 0.7182 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/2.287, allocations: 142.4 kB / 0.7183 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/2.287, allocations: 247.4 kB / 0.7185 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/2.287, allocations: 0 / 0.7185 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003769/2.287, allocations: 342.6 kB / 0.7189 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/2.287, allocations: 12.58 kB / 0.7189 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/2.287, allocations: 0 / 0.7189 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007714/2.288, allocations: 135.9 kB / 0.719 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.714e-05/2.288, allocations: 15.06 kB / 0.719 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004323/2.289, allocations: 0.6157 MB / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/2.289, allocations: 24.58 kB / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/2.289, allocations: 8.719 kB / 0.7197 GB, free: 210.1 MB / 0.5919 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.0001343/2.289, allocations: 160.6 kB / 0.7198 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/2.289, allocations: 33.22 kB / 0.7198 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006948/2.29, allocations: 0.6546 MB / 0.7205 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003689/2.29, allocations: 260.9 kB / 0.7207 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/2.29, allocations: 0 / 0.7207 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/2.29, allocations: 4.969 kB / 0.7207 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009074/2.291, allocations: 0.83 MB / 0.7215 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/2.291, allocations: 1.578 kB / 0.7215 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.385e-05/2.291, allocations: 17.83 kB / 0.7216 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003247/2.291, allocations: 106.9 kB / 0.7217 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/2.291, allocations: 2.5 kB / 0.7217 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003612/2.292, allocations: 0.6343 MB / 0.7223 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/2.292, allocations: 1.312 kB / 0.7223 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004213/2.292, allocations: 383.4 kB / 0.7227 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.902e-05/2.292, allocations: 127.1 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.402e-05/2.292, allocations: 9.938 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/2.292, allocations: 1.547 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/2.292, allocations: 18.62 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/2.293, allocations: 7.609 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002823/2.293, allocations: 332.8 kB / 0.7231 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/2.293, allocations: 0 / 0.7231 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003212/2.296, allocations: 1.205 MB / 0.7243 GB, free: 208.4 MB / 0.5919 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.004965/2.301, allocations: 2.568 MB / 0.7268 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006351/2.302, allocations: 277.4 kB / 0.7271 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/2.302, allocations: 3.938 kB / 0.7271 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002721/2.302, allocations: 118.8 kB / 0.7272 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/2.303, allocations: 131.5 kB / 0.7273 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004465/2.307, allocations: 3.717 MB / 0.7309 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/2.307, allocations: 0.803 MB / 0.7317 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001144/2.308, allocations: 32.19 kB / 0.7318 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/2.308, allocations: 124.5 kB / 0.7319 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of SimCode: time 7.22e-07/2.308, allocations: 1.375 kB / 0.7319 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07347/2.381, allocations: 49.07 MB / 0.7798 GB, free: 167.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/15.57, allocations: 1.891 kB / 0.7798 GB, free: 167.6 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)