Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.5675/0.5675, allocations: 120.4 MB / 139.5 MB, free: 12.99 MB / 138.7 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.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.285e-06/2.285e-06, allocations: 0 / 216.6 MB, free: 8.668 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.743e-05, allocations: 2.281 kB / 216.6 MB, free: 8.664 MB / 202.7 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.TestDiaphragm): time 1.009/1.009, allocations: 254.2 MB / 470.8 MB, free: 8.914 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2526/1.262, allocations: 30.74 MB / 0.4898 GB, free: 0.875 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/1.262, allocations: 2.406 kB / 0.4898 GB, free: 0.875 MB / 442.7 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/Diaphragm.mo:30:3-32:42: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/Diaphragm.mo:33:3-35:37: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.0003413/1.263, allocations: 108.2 kB / 0.4899 GB, free: 0.875 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/1.263, allocations: 115.7 kB / 0.49 GB, free: 0.8672 MB / 442.7 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.02045/1.283, allocations: 9.838 MB / 0.4996 GB, free: 15.03 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005378/1.284, allocations: 379.7 kB / 0.5 GB, free: 14.89 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/1.284, allocations: 100.3 kB / 0.5001 GB, free: 14.86 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/1.284, allocations: 227.3 kB / 0.5003 GB, free: 14.74 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/1.284, allocations: 78.53 kB / 0.5004 GB, free: 14.71 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/1.284, allocations: 18.66 kB / 0.5004 GB, free: 14.71 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0262/1.311, allocations: 16.86 MB / 0.5169 GB, free: 2.922 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/1.311, allocations: 49.56 kB / 0.5169 GB, free: 2.879 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/1.311, allocations: 86.34 kB / 0.517 GB, free: 2.801 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02117/1.332, allocations: 10.87 MB / 0.5276 GB, free: 8.43 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/1.332, allocations: 1.125 kB / 0.5276 GB, free: 8.43 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.332, allocations: 0 / 0.5276 GB, free: 8.43 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.403e-06/1.332, allocations: 0 / 0.5276 GB, free: 8.43 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003552/1.336, allocations: 1.434 MB / 0.529 GB, free: 6.965 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/1.336, allocations: 12.03 kB / 0.529 GB, free: 6.953 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.184e-05/1.336, allocations: 64.06 kB / 0.5291 GB, free: 6.883 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.171e-05/1.336, allocations: 27.81 kB / 0.5291 GB, free: 6.855 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/1.336, allocations: 177.5 kB / 0.5293 GB, free: 6.656 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/1.336, allocations: 17.88 kB / 0.5293 GB, free: 6.641 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/1.336, allocations: 20.56 kB / 0.5293 GB, free: 6.621 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003549/1.336, allocations: 343.2 kB / 0.5296 GB, free: 6.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.337, allocations: 0.9062 kB / 0.5296 GB, free: 6.25 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/1.337, allocations: 12 kB / 0.5296 GB, free: 6.238 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/1.337, allocations: 15.92 kB / 0.5297 GB, free: 6.223 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/1.337, allocations: 175.5 kB / 0.5298 GB, free: 6.051 MB / 474.7 MB 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.01722/1.354, allocations: 10.92 MB / 0.5405 GB, free: 11.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/1.354, allocations: 132.6 kB / 0.5406 GB, free: 11.09 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.76e-05/1.354, allocations: 72.72 kB / 0.5407 GB, free: 11.01 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07216/1.426, allocations: 43.61 MB / 0.5833 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/1.427, allocations: 38.56 kB / 0.5833 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/1.427, allocations: 0.9375 kB / 0.5833 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0007926/1.427, allocations: 339.6 kB / 0.5836 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/1.427, allocations: 84.98 kB / 0.5837 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/1.428, allocations: 223.1 kB / 0.5839 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/1.428, allocations: 29.7 kB / 0.584 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/1.428, allocations: 163.5 kB / 0.5841 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.134e-05/1.428, allocations: 113.7 kB / 0.5842 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003626/1.428, allocations: 49.69 kB / 0.5843 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.47e-05/1.428, allocations: 338.8 kB / 0.5846 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.766e-05/1.428, allocations: 75.97 kB / 0.5847 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/1.428, allocations: 161.6 kB / 0.5848 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/1.429, allocations: 225.9 kB / 0.585 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.429, allocations: 11.97 kB / 0.5851 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003094/1.429, allocations: 302.1 kB / 0.5853 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/1.429, allocations: 7.938 kB / 0.5853 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/1.429, allocations: 4 kB / 0.5854 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005381/1.429, allocations: 138.7 kB / 0.5855 GB, free: 13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.08e-05/1.429, allocations: 15.98 kB / 0.5855 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003855/1.43, allocations: 0.6119 MB / 0.5861 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.124e-05/1.43, allocations: 28.91 kB / 0.5861 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/1.43, allocations: 11.98 kB / 0.5861 GB, free: 12.31 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.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 (15): * Single equations (assignments): 12 * 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.0001078/1.43, allocations: 141.8 kB / 0.5863 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/1.43, allocations: 23.86 kB / 0.5863 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005962/1.431, allocations: 0.6011 MB / 0.5869 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002794/1.431, allocations: 223 kB / 0.5871 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.431, allocations: 1.312 kB / 0.5871 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.431, allocations: 3.984 kB / 0.5871 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006982/1.432, allocations: 0.6717 MB / 0.5878 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.432, allocations: 0 / 0.5878 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.215e-05/1.432, allocations: 23.92 kB / 0.5878 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/1.432, allocations: 106.8 kB / 0.5879 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/1.432, allocations: 8.656 kB / 0.5879 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003236/1.432, allocations: 0.6344 MB / 0.5885 GB, free: 9.719 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.432, allocations: 3.938 kB / 0.5885 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/1.433, allocations: 336.1 kB / 0.5888 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/1.433, allocations: 35.83 kB / 0.5889 GB, free: 9.332 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/1.433, allocations: 16.44 kB / 0.5889 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.755e-05/1.433, allocations: 7.938 kB / 0.5889 GB, free: 9.309 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/1.433, allocations: 12.7 kB / 0.5889 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/1.433, allocations: 4 kB / 0.5889 GB, free: 9.293 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001613/1.433, allocations: 239.1 kB / 0.5891 GB, free: 9.062 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.433, allocations: 0 / 0.5891 GB, free: 9.062 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0026/1.436, allocations: 1.231 MB / 0.5903 GB, free: 7.828 MB / 0.5261 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.004382/1.44, allocations: 2.731 MB / 0.593 GB, free: 5.301 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005413/1.441, allocations: 233.9 kB / 0.5932 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.441, allocations: 0 / 0.5932 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/1.441, allocations: 95.69 kB / 0.5933 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/1.441, allocations: 123.6 kB / 0.5934 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/1.444, allocations: 3.101 MB / 0.5965 GB, free: 1.652 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/1.444, allocations: 160.7 kB / 0.5966 GB, free: 1.477 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.485e-05/1.444, allocations: 27.78 kB / 0.5966 GB, free: 1.449 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.778e-05/1.445, allocations: 96.45 kB / 0.5967 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of SimCode: time 6.12e-07/1.445, allocations: 0 / 0.5967 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06798/1.512, allocations: 49.44 MB / 0.645 GB, free: 288 kB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.743/11.26, allocations: 8.062 kB / 0.645 GB, free: 280 kB / 0.573 GB " [Timeout remaining time 648] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.892881883308291] Failed to read output from testmodel.py, exit status != 0: 11.612409961409867 11.744180599 10.410313005 Calling exit ...