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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.814/0.814, allocations: 153.8 MB / 172.7 MB, free: 4.871 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004993/0.0004993, allocations: 15.97 kB / 249.8 MB, free: 4.367 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1648, allocations: 33.35 MB / 283.2 MB, free: 1.75 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestControlValve): time 1.796/1.961, allocations: 307.6 MB / 0.5769 GB, free: 17.47 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03333/1.994, allocations: 30.82 MB / 0.607 GB, free: 2.707 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003034/1.995, allocations: 3.969 kB / 0.607 GB, free: 2.707 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0005386/1.995, allocations: 162 kB / 0.6072 GB, free: 2.656 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004445/1.996, allocations: 168.5 kB / 0.6073 GB, free: 2.57 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02655/2.022, allocations: 9.839 MB / 0.6169 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007226/2.023, allocations: 398.2 kB / 0.6173 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/2.023, allocations: 114.3 kB / 0.6174 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/2.024, allocations: 179.3 kB / 0.6176 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/2.024, allocations: 164.1 kB / 0.6178 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/2.024, allocations: 16 kB / 0.6178 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03315/2.057, allocations: 16.84 MB / 0.6342 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001766/2.057, allocations: 76.55 kB / 0.6343 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002314/2.057, allocations: 127.3 kB / 0.6344 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0211/2.079, allocations: 8.548 MB / 0.6428 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/2.079, allocations: 0 / 0.6428 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.445e-06/2.079, allocations: 0 / 0.6428 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.146e-06/2.079, allocations: 0 / 0.6428 GB, free: 1.973 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.004126/2.083, allocations: 1.504 MB / 0.6442 GB, free: 440 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/2.083, allocations: 12.03 kB / 0.6442 GB, free: 428 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.11e-05/2.083, allocations: 70.47 kB / 0.6443 GB, free: 348 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.091e-05/2.083, allocations: 40.75 kB / 0.6443 GB, free: 308 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/2.083, allocations: 228 kB / 0.6446 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/2.083, allocations: 20.38 kB / 0.6446 GB, free: 36 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/2.083, allocations: 20 kB / 0.6446 GB, free: 16 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/2.084, allocations: 319.5 kB / 0.6449 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/2.084, allocations: 4.688 kB / 0.6449 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/2.084, allocations: 15.94 kB / 0.6449 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/2.084, allocations: 11.98 kB / 0.6449 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/2.084, allocations: 205.2 kB / 0.6451 GB, free: 15.44 MB / 0.5137 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.03523/2.119, allocations: 10.94 MB / 0.6558 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/2.12, allocations: 126.5 kB / 0.6559 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/2.12, allocations: 89.58 kB / 0.656 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.151/2.271, allocations: 43.6 MB / 0.6986 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/2.271, allocations: 30.56 kB / 0.6986 GB, free: 8.539 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.294e-06/2.271, allocations: 4 kB / 0.6986 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001174/2.272, allocations: 428.3 kB / 0.699 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/2.272, allocations: 51.41 kB / 0.6991 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000466/2.272, allocations: 360.4 kB / 0.6994 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/2.272, allocations: 25.7 kB / 0.6995 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/2.273, allocations: 189.3 kB / 0.6996 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.37e-05/2.273, allocations: 115 kB / 0.6997 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-05/2.273, allocations: 53.69 kB / 0.6998 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000179/2.273, allocations: 342.8 kB / 0.7001 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/2.273, allocations: 97.41 kB / 0.7002 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/2.273, allocations: 136.2 kB / 0.7003 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/2.274, allocations: 260.7 kB / 0.7006 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/2.274, allocations: 0.9375 kB / 0.7006 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005311/2.274, allocations: 341.6 kB / 0.7009 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/2.274, allocations: 8 kB / 0.7009 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/2.274, allocations: 0 / 0.7009 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007919/2.275, allocations: 141.6 kB / 0.7011 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.289e-05/2.275, allocations: 15.94 kB / 0.7011 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006301/2.276, allocations: 0.6183 MB / 0.7017 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/2.276, allocations: 27.73 kB / 0.7017 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/2.276, allocations: 8 kB / 0.7017 GB, free: 5.258 MB / 0.5606 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.0001879/2.276, allocations: 162.6 kB / 0.7019 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.017e-05/2.276, allocations: 31.77 kB / 0.7019 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009187/2.277, allocations: 0.6382 MB / 0.7025 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004479/2.277, allocations: 267.4 kB / 0.7028 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/2.277, allocations: 0 / 0.7028 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/2.277, allocations: 0.9375 kB / 0.7028 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/2.279, allocations: 0.7537 MB / 0.7035 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/2.279, allocations: 0 / 0.7035 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.078e-05/2.279, allocations: 16 kB / 0.7035 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003556/2.279, allocations: 104.8 kB / 0.7036 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/2.279, allocations: 13.44 kB / 0.7036 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005929/2.28, allocations: 0.6382 MB / 0.7043 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/2.28, allocations: 0 / 0.7043 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005669/2.28, allocations: 390.4 kB / 0.7046 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/2.28, allocations: 59.67 kB / 0.7047 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/2.28, allocations: 13.7 kB / 0.7047 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/2.281, allocations: 4 kB / 0.7047 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/2.281, allocations: 7.984 kB / 0.7047 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/2.281, allocations: 4 kB / 0.7047 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004002/2.281, allocations: 331.1 kB / 0.705 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.281, allocations: 1.031 kB / 0.705 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003115/2.284, allocations: 1.228 MB / 0.7062 GB, free: 452 kB / 0.5606 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.00676/2.291, allocations: 2.576 MB / 0.7088 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007448/2.292, allocations: 265.4 kB / 0.709 GB, free: 13.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/2.292, allocations: 0 / 0.709 GB, free: 13.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000309/2.292, allocations: 109.7 kB / 0.7091 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000809/2.293, allocations: 131.3 kB / 0.7092 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006356/2.299, allocations: 3.73 MB / 0.7129 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/2.299, allocations: 197.1 kB / 0.7131 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001393/2.299, allocations: 30.14 kB / 0.7131 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/2.3, allocations: 131.4 kB / 0.7132 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of SimCode: time 7.22e-07/2.3, allocations: 0 / 0.7132 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/2.403, allocations: 50.02 MB / 0.7621 GB, free: 7.863 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/16.82, allocations: 10.25 kB / 0.7621 GB, free: 7.855 MB / 0.6231 GB " [Timeout remaining time 643] (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 --stepSize=0.032 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.84240939700976] Failed to read output from testmodel.py, exit status != 0: 17.339766882825643 17.350161161 15.269253963 Calling exit ...