Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.8117/0.8117, allocations: 153.8 MB / 173.5 MB, free: 4.953 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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004904/0.0004904, allocations: 15.97 kB / 250.6 MB, free: 4.516 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1606, allocations: 33.35 MB / 283.9 MB, free: 1.844 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.788/1.949, allocations: 307.3 MB / 0.5774 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03225/1.981, allocations: 35.03 MB / 0.6116 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003346/1.981, allocations: 3.531 kB / 0.6116 GB, free: 14.2 MB / 494.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.0005548/1.982, allocations: 190.2 kB / 0.6117 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/1.982, allocations: 168 kB / 0.6119 GB, free: 14.05 MB / 494.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.02612/2.008, allocations: 9.983 MB / 0.6217 GB, free: 8.266 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007227/2.009, allocations: 386.3 kB / 0.622 GB, free: 7.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/2.009, allocations: 110.9 kB / 0.6221 GB, free: 7.781 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003086/2.009, allocations: 183.2 kB / 0.6223 GB, free: 7.602 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/2.01, allocations: 177.4 kB / 0.6225 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.087e-05/2.01, allocations: 16 kB / 0.6225 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03421/2.044, allocations: 18.01 MB / 0.6401 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001496/2.044, allocations: 75.7 kB / 0.6401 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002315/2.044, allocations: 163.1 kB / 0.6403 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02075/2.065, allocations: 8.544 MB / 0.6486 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/2.065, allocations: 0 / 0.6486 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.753e-06/2.065, allocations: 0 / 0.6486 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.466e-06/2.065, allocations: 0.9375 kB / 0.6486 GB, free: 12.59 MB / 0.5137 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.004218/2.069, allocations: 1.52 MB / 0.6501 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/2.069, allocations: 8.031 kB / 0.6501 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.199e-05/2.069, allocations: 8.438 kB / 0.6501 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.184e-05/2.069, allocations: 63.78 kB / 0.6502 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/2.069, allocations: 43.72 kB / 0.6502 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/2.07, allocations: 233.8 kB / 0.6505 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/2.07, allocations: 12.44 kB / 0.6505 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/2.07, allocations: 23.98 kB / 0.6505 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004711/2.07, allocations: 327.4 kB / 0.6508 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/2.07, allocations: 0.6562 kB / 0.6508 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/2.07, allocations: 8 kB / 0.6508 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/2.07, allocations: 15.98 kB / 0.6508 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000301/2.071, allocations: 209.1 kB / 0.651 GB, free: 10.04 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.03527/2.106, allocations: 11.34 MB / 0.6621 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/2.106, allocations: 118.5 kB / 0.6622 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/2.106, allocations: 86.33 kB / 0.6623 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1477/2.254, allocations: 43.43 MB / 0.7047 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/2.254, allocations: 30.56 kB / 0.7048 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.384e-06/2.254, allocations: 0 / 0.7048 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001207/2.255, allocations: 432.3 kB / 0.7052 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/2.255, allocations: 55.41 kB / 0.7052 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004553/2.256, allocations: 356.4 kB / 0.7056 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/2.256, allocations: 29.64 kB / 0.7056 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/2.256, allocations: 188.7 kB / 0.7058 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.728e-05/2.256, allocations: 115 kB / 0.7059 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.653e-05/2.256, allocations: 49.62 kB / 0.7059 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001726/2.256, allocations: 358.7 kB / 0.7063 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/2.256, allocations: 89.09 kB / 0.7064 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/2.256, allocations: 140.2 kB / 0.7065 GB, free: 0.9648 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/2.257, allocations: 253.7 kB / 0.7067 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/2.257, allocations: 0 / 0.7067 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005407/2.257, allocations: 345.4 kB / 0.7071 GB, free: 364 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/2.257, allocations: 8 kB / 0.7071 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/2.257, allocations: 4.875 kB / 0.7071 GB, free: 352 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000809/2.258, allocations: 141.7 kB / 0.7072 GB, free: 208 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.928e-05/2.258, allocations: 8 kB / 0.7072 GB, free: 200 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006326/2.259, allocations: 0.6196 MB / 0.7078 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/2.259, allocations: 32.7 kB / 0.7078 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/2.259, allocations: 4 kB / 0.7079 GB, free: 15.52 MB / 0.5762 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.0001717/2.259, allocations: 162.8 kB / 0.708 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.276e-05/2.259, allocations: 27.81 kB / 0.708 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008859/2.26, allocations: 0.641 MB / 0.7087 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004317/2.261, allocations: 247.4 kB / 0.7089 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/2.261, allocations: 1.062 kB / 0.7089 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/2.261, allocations: 4 kB / 0.7089 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/2.262, allocations: 0.8007 MB / 0.7097 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/2.262, allocations: 0 / 0.7097 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.171e-05/2.262, allocations: 23.92 kB / 0.7097 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003555/2.262, allocations: 104.8 kB / 0.7098 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/2.262, allocations: 3.938 kB / 0.7098 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005811/2.263, allocations: 0.6432 MB / 0.7104 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/2.263, allocations: 0 / 0.7104 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/2.263, allocations: 388.9 kB / 0.7108 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.008e-05/2.263, allocations: 44.64 kB / 0.7108 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/2.263, allocations: 15.89 kB / 0.7109 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/2.264, allocations: 0 / 0.7109 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/2.264, allocations: 11.97 kB / 0.7109 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/2.264, allocations: 8 kB / 0.7109 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000381/2.264, allocations: 331.1 kB / 0.7112 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/2.264, allocations: 0 / 0.7112 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003241/2.267, allocations: 1.224 MB / 0.7124 GB, free: 10.68 MB / 0.5762 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.006447/2.274, allocations: 2.59 MB / 0.7149 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006651/2.274, allocations: 262.9 kB / 0.7152 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/2.274, allocations: 0 / 0.7152 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003088/2.275, allocations: 110.2 kB / 0.7153 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/2.275, allocations: 129.3 kB / 0.7154 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005754/2.281, allocations: 3.742 MB / 0.7191 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/2.282, allocations: 0.8078 MB / 0.7198 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001267/2.282, allocations: 39.72 kB / 0.7199 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/2.282, allocations: 127.4 kB / 0.72 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of SimCode: time 6.52e-07/2.282, allocations: 0 / 0.72 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1061/2.388, allocations: 49.61 MB / 0.7685 GB, free: 1.852 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/17.73, allocations: 14.56 kB / 0.7685 GB, free: 1.848 MB / 0.6231 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --stepSize=0.032 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.127620273036882] Failed to read output from testmodel.py, exit status != 0: 18.322322777006775 18.333272649 16.265932809 Calling exit ...