Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8091/0.8091, allocations: 150.9 MB / 166.4 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003629, allocations: 27.97 kB / 204.6 MB, free: 9.727 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1434, allocations: 31.33 MB / 236 MB, free: 5.406 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.SimpleExamples.TestBend): time 1.558/1.702, allocations: 294.9 MB / 0.5184 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03905/1.741, allocations: 35.08 MB / 0.5527 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/1.741, allocations: 0 / 0.5527 GB, free: 10.23 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.0005253/1.742, allocations: 284.2 kB / 0.5529 GB, free: 9.953 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/1.742, allocations: 254.9 kB / 0.5532 GB, free: 9.703 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.02243/1.764, allocations: 9.82 MB / 0.5628 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006084/1.765, allocations: 494.7 kB / 0.5632 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/1.765, allocations: 191.2 kB / 0.5634 GB, free: 15.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002993/1.766, allocations: 235.1 kB / 0.5637 GB, free: 14.98 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/1.766, allocations: 299.1 kB / 0.5639 GB, free: 14.69 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/1.766, allocations: 24 kB / 0.564 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03099/1.797, allocations: 17.81 MB / 0.5814 GB, free: 12.83 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/1.797, allocations: 183.3 kB / 0.5815 GB, free: 12.65 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003448/1.798, allocations: 270.3 kB / 0.5818 GB, free: 12.38 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01824/1.816, allocations: 8.866 MB / 0.5904 GB, free: 3.496 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/1.816, allocations: 0 / 0.5904 GB, free: 3.496 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.433e-06/1.816, allocations: 0 / 0.5904 GB, free: 3.496 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/1.816, allocations: 0 / 0.5904 GB, free: 3.496 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.004526/1.82, allocations: 1.827 MB / 0.5922 GB, free: 1.617 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/1.821, allocations: 12.03 kB / 0.5922 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.054e-05/1.821, allocations: 70.45 kB / 0.5923 GB, free: 1.527 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/1.821, allocations: 67.16 kB / 0.5924 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006179/1.821, allocations: 494.2 kB / 0.5928 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/1.821, allocations: 20.56 kB / 0.5929 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/1.821, allocations: 27.94 kB / 0.5929 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006073/1.822, allocations: 429.3 kB / 0.5933 GB, free: 444 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/1.822, allocations: 3.938 kB / 0.5933 GB, free: 440 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/1.822, allocations: 16 kB / 0.5933 GB, free: 424 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/1.822, allocations: 11.98 kB / 0.5933 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/1.823, allocations: 341.8 kB / 0.5937 GB, free: 68 kB / 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.03973/1.862, allocations: 18.58 MB / 0.6118 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/1.863, allocations: 176 kB / 0.612 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/1.863, allocations: 105.5 kB / 0.6121 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1626/2.026, allocations: 77.47 MB / 0.6877 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/2.026, allocations: 34.56 kB / 0.6878 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.425e-06/2.026, allocations: 0 / 0.6878 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.00187/2.028, allocations: 0.5917 MB / 0.6883 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/2.028, allocations: 106.8 kB / 0.6884 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001262/2.029, allocations: 1.008 MB / 0.6894 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/2.029, allocations: 29.7 kB / 0.6895 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/2.029, allocations: 296.2 kB / 0.6897 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.674e-05/2.029, allocations: 130 kB / 0.6899 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/2.03, allocations: 61.59 kB / 0.6899 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001752/2.03, allocations: 390.6 kB / 0.6903 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/2.03, allocations: 164.4 kB / 0.6905 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/2.03, allocations: 231.1 kB / 0.6907 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/2.031, allocations: 336.7 kB / 0.691 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/2.031, allocations: 0 / 0.691 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007923/2.031, allocations: 0.5386 MB / 0.6915 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/2.031, allocations: 6.188 kB / 0.6915 GB, free: 1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/2.031, allocations: 4 kB / 0.6915 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/2.033, allocations: 216.7 kB / 0.6917 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.455e-05/2.033, allocations: 23.92 kB / 0.6918 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00065/2.034, allocations: 0.681 MB / 0.6924 GB, free: 52 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/2.034, allocations: 39.62 kB / 0.6925 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/2.034, allocations: 8.078 kB / 0.6925 GB, free: 4 kB / 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.1434/2.178, allocations: 251.1 kB / 0.6927 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/2.178, allocations: 61.22 kB / 0.6928 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008259/2.179, allocations: 0.7026 MB / 0.6935 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003398/2.179, allocations: 246.3 kB / 0.6937 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/2.179, allocations: 1.312 kB / 0.6937 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/2.179, allocations: 4.219 kB / 0.6937 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/2.18, allocations: 0.9845 MB / 0.6947 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/2.18, allocations: 2.469 kB / 0.6947 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/2.18, allocations: 17.22 kB / 0.6947 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009643/2.181, allocations: 184.8 kB / 0.6948 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/2.181, allocations: 8.141 kB / 0.6949 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005316/2.182, allocations: 0.7033 MB / 0.6955 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/2.182, allocations: 0 / 0.6955 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004821/2.182, allocations: 414.2 kB / 0.6959 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/2.183, allocations: 176.6 kB / 0.6961 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.68e-05/2.183, allocations: 20.58 kB / 0.6961 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/2.183, allocations: 11.42 kB / 0.6961 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/2.183, allocations: 14.58 kB / 0.6962 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/2.183, allocations: 4.094 kB / 0.6962 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009372/2.184, allocations: 0.8132 MB / 0.697 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/2.184, allocations: 1.062 kB / 0.697 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00317/2.187, allocations: 1.248 MB / 0.6982 GB, free: 224.5 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.005935/2.193, allocations: 2.638 MB / 0.7007 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006859/2.194, allocations: 357.7 kB / 0.7011 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/2.194, allocations: 0 / 0.7011 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002829/2.194, allocations: 117.4 kB / 0.7012 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/2.195, allocations: 155.5 kB / 0.7013 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007052/2.202, allocations: 6.22 MB / 0.7074 GB, free: 221.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/2.202, allocations: 0.9368 MB / 0.7083 GB, free: 221 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001808/2.202, allocations: 61.23 kB / 0.7084 GB, free: 221 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/2.203, allocations: 237.3 kB / 0.7086 GB, free: 221 MB / 0.5762 GB Notification: Performance of SimCode: time 3.51e-07/2.203, allocations: 0 / 0.7086 GB, free: 221 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08216/2.285, allocations: 54.16 MB / 0.7615 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/15.68, allocations: 11.22 kB / 0.7615 GB, free: 182.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe 2>&1)