Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",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.8357/0.8357, allocations: 150.9 MB / 166.1 MB, free: 14.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004256, allocations: 11.98 kB / 204.2 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1636, allocations: 31.33 MB / 235.6 MB, free: 5.426 MB / 190.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.Book.SimpleExamples.PressureLoss.TestBend): time 1.654/1.818, allocations: 293.7 MB / 0.5169 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04421/1.862, allocations: 35.29 MB / 0.5513 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002627/1.862, allocations: 4 kB / 0.5513 GB, free: 10.35 MB / 446.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/Bend.mo:55:3-57: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 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43: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.0006272/1.863, allocations: 248 kB / 0.5516 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004571/1.863, allocations: 247 kB / 0.5518 GB, free: 9.867 MB / 446.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.02518/1.889, allocations: 8.616 MB / 0.5602 GB, free: 1.25 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006865/1.889, allocations: 0.4987 MB / 0.5607 GB, free: 0.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/1.89, allocations: 180.4 kB / 0.5609 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003868/1.89, allocations: 227.2 kB / 0.5611 GB, free: 360 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/1.89, allocations: 307.1 kB / 0.5614 GB, free: 52 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.283e-05/1.891, allocations: 24 kB / 0.5614 GB, free: 28 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03778/1.928, allocations: 17.91 MB / 0.5789 GB, free: 14.1 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003551/1.929, allocations: 183.3 kB / 0.5791 GB, free: 13.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003703/1.929, allocations: 278.2 kB / 0.5793 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02226/1.951, allocations: 8.877 MB / 0.588 GB, free: 4.746 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/1.951, allocations: 0 / 0.588 GB, free: 4.746 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.904e-06/1.951, allocations: 0 / 0.588 GB, free: 4.746 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.814e-05/1.951, allocations: 0 / 0.588 GB, free: 4.746 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004814/1.956, allocations: 1.815 MB / 0.5898 GB, free: 2.879 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/1.956, allocations: 8.031 kB / 0.5898 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/1.956, allocations: 74.53 kB / 0.5898 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/1.957, allocations: 67.16 kB / 0.5899 GB, free: 2.723 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005615/1.957, allocations: 498.2 kB / 0.5904 GB, free: 2.191 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/1.957, allocations: 20.56 kB / 0.5904 GB, free: 2.168 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/1.957, allocations: 27.94 kB / 0.5904 GB, free: 2.141 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/1.958, allocations: 433.2 kB / 0.5908 GB, free: 1.684 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/1.958, allocations: 4 kB / 0.5909 GB, free: 1.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/1.958, allocations: 8 kB / 0.5909 GB, free: 1.672 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/1.958, allocations: 15.98 kB / 0.5909 GB, free: 1.656 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004176/1.958, allocations: 342.6 kB / 0.5912 GB, free: 1.32 MB / 478.1 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.03567/1.994, allocations: 18.59 MB / 0.6094 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/1.995, allocations: 171.5 kB / 0.6095 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/1.995, allocations: 113.4 kB / 0.6096 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1488/2.144, allocations: 77.46 MB / 0.6853 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/2.144, allocations: 38.56 kB / 0.6853 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.385e-06/2.144, allocations: 0 / 0.6853 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001977/2.146, allocations: 0.5939 MB / 0.6859 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/2.146, allocations: 110.8 kB / 0.686 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/2.147, allocations: 1.004 MB / 0.687 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/2.147, allocations: 29.7 kB / 0.687 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000247/2.148, allocations: 300.1 kB / 0.6873 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/2.148, allocations: 130.1 kB / 0.6874 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/2.148, allocations: 65.59 kB / 0.6875 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001845/2.148, allocations: 382.7 kB / 0.6878 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/2.148, allocations: 156.4 kB / 0.688 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/2.148, allocations: 235.1 kB / 0.6882 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004008/2.149, allocations: 344.7 kB / 0.6885 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/2.149, allocations: 0 / 0.6885 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000809/2.15, allocations: 0.5267 MB / 0.6891 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/2.15, allocations: 5.781 kB / 0.6891 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/2.15, allocations: 8 kB / 0.6891 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/2.151, allocations: 216.6 kB / 0.6893 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/2.152, allocations: 23.94 kB / 0.6893 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006812/2.152, allocations: 0.6707 MB / 0.69 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/2.153, allocations: 51.61 kB / 0.69 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/2.153, allocations: 8 kB / 0.69 GB, free: 1.262 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002905/2.153, allocations: 249.7 kB / 0.6902 GB, free: 1.008 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/2.153, allocations: 63.16 kB / 0.6903 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008703/2.154, allocations: 0.7135 MB / 0.691 GB, free: 160 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1719/2.326, allocations: 244.7 kB / 0.6912 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/2.326, allocations: 0 / 0.6912 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/2.326, allocations: 0 / 0.6912 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/2.328, allocations: 0.9847 MB / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/2.328, allocations: 1.625 kB / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.649e-05/2.328, allocations: 20.59 kB / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009539/2.329, allocations: 180.5 kB / 0.6924 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/2.329, allocations: 3.719 kB / 0.6924 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005489/2.329, allocations: 0.7014 MB / 0.6931 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/2.329, allocations: 1.344 kB / 0.6931 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005421/2.33, allocations: 420.1 kB / 0.6935 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/2.33, allocations: 170.9 kB / 0.6936 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/2.33, allocations: 16.3 kB / 0.6937 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/2.33, allocations: 7.031 kB / 0.6937 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/2.33, allocations: 15.59 kB / 0.6937 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/2.33, allocations: 4.688 kB / 0.6937 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001054/2.332, allocations: 0.8103 MB / 0.6945 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/2.332, allocations: 1.531 kB / 0.6945 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003966/2.336, allocations: 1.255 MB / 0.6957 GB, free: 225.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007186/2.343, allocations: 2.704 MB / 0.6983 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009074/2.344, allocations: 356.6 kB / 0.6987 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/2.344, allocations: 2.906 kB / 0.6987 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003221/2.344, allocations: 111 kB / 0.6988 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/2.345, allocations: 153 kB / 0.6989 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/2.355, allocations: 6.376 MB / 0.7052 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/2.356, allocations: 0.9348 MB / 0.7061 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002259/2.356, allocations: 59.92 kB / 0.7061 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/2.356, allocations: 233.7 kB / 0.7064 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.02e-07/2.356, allocations: 0 / 0.7064 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07875/2.435, allocations: 54.46 MB / 0.7595 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/2.435, allocations: 252.4 kB / 0.7598 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.277/6.712, allocations: 5.359 kB / 0.7598 GB, free: 182.9 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)