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.8878/0.8878, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003439, allocations: 15.98 kB / 204.1 MB, free: 9.953 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2305, allocations: 31.32 MB / 235.4 MB, free: 5.43 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.778/2.008, allocations: 293.7 MB / 0.5167 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04798/2.056, allocations: 38.24 MB / 0.5541 GB, free: 7.508 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/2.056, allocations: 4 kB / 0.5541 GB, free: 7.504 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.0006003/2.057, allocations: 243.2 kB / 0.5543 GB, free: 7.266 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003701/2.057, allocations: 247 kB / 0.5545 GB, free: 7.023 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02336/2.081, allocations: 7.347 MB / 0.5617 GB, free: 15.67 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008399/2.082, allocations: 474.8 kB / 0.5622 GB, free: 15.21 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003185/2.082, allocations: 182.6 kB / 0.5623 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003101/2.082, allocations: 207.1 kB / 0.5625 GB, free: 14.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003162/2.083, allocations: 287.1 kB / 0.5628 GB, free: 14.54 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.826e-05/2.083, allocations: 16 kB / 0.5628 GB, free: 14.52 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03255/2.115, allocations: 17.87 MB / 0.5803 GB, free: 12.62 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000297/2.116, allocations: 171.4 kB / 0.5804 GB, free: 12.46 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003281/2.116, allocations: 258.2 kB / 0.5807 GB, free: 12.2 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02343/2.139, allocations: 8.865 MB / 0.5893 GB, free: 3.316 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/2.139, allocations: 4 kB / 0.5893 GB, free: 3.312 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.394e-06/2.139, allocations: 4 kB / 0.5893 GB, free: 3.309 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/2.139, allocations: 0 / 0.5893 GB, free: 3.309 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.005305/2.145, allocations: 1.819 MB / 0.5911 GB, free: 1.438 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/2.145, allocations: 12.02 kB / 0.5911 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.348e-05/2.145, allocations: 66.53 kB / 0.5912 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/2.145, allocations: 67.16 kB / 0.5913 GB, free: 1.285 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/2.146, allocations: 494.2 kB / 0.5917 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/2.146, allocations: 16.56 kB / 0.5918 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/2.146, allocations: 28.55 kB / 0.5918 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/2.146, allocations: 429.3 kB / 0.5922 GB, free: 268 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/2.146, allocations: 3.938 kB / 0.5922 GB, free: 264 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/2.146, allocations: 16 kB / 0.5922 GB, free: 248 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/2.146, allocations: 16.69 kB / 0.5922 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/2.147, allocations: 341.9 kB / 0.5925 GB, free: 15.89 MB / 494.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.03751/2.184, allocations: 18.59 MB / 0.6107 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/2.185, allocations: 170.6 kB / 0.6109 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/2.185, allocations: 101.5 kB / 0.611 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1476/2.333, allocations: 77.47 MB / 0.6866 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.154e-05/2.333, allocations: 38.5 kB / 0.6867 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 5.911e-06/2.333, allocations: 1.359 kB / 0.6867 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.002451/2.335, allocations: 0.5879 MB / 0.6872 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/2.336, allocations: 106.8 kB / 0.6873 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/2.337, allocations: 1.008 MB / 0.6883 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/2.337, allocations: 29.7 kB / 0.6883 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/2.338, allocations: 304.1 kB / 0.6886 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/2.338, allocations: 122.1 kB / 0.6888 GB, free: 2.605 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/2.338, allocations: 73.58 kB / 0.6888 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000249/2.338, allocations: 382.7 kB / 0.6892 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/2.338, allocations: 160.4 kB / 0.6893 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/2.339, allocations: 231.1 kB / 0.6896 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/2.339, allocations: 336.7 kB / 0.6899 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/2.339, allocations: 0 / 0.6899 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001006/2.34, allocations: 0.5307 MB / 0.6904 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/2.34, allocations: 7.938 kB / 0.6904 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/2.34, allocations: 4 kB / 0.6904 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/2.342, allocations: 222.4 kB / 0.6906 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.409e-05/2.342, allocations: 19.98 kB / 0.6906 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.197/2.539, allocations: 0.6854 MB / 0.6913 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/2.54, allocations: 41.95 kB / 0.6914 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/2.54, allocations: 10.34 kB / 0.6914 GB, free: 225.4 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.0003466/2.54, allocations: 243.2 kB / 0.6916 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/2.54, allocations: 62.44 kB / 0.6917 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008339/2.541, allocations: 0.7087 MB / 0.6923 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003398/2.542, allocations: 246 kB / 0.6926 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/2.542, allocations: 0 / 0.6926 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/2.542, allocations: 2.719 kB / 0.6926 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/2.543, allocations: 0.9868 MB / 0.6935 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/2.543, allocations: 3.125 kB / 0.6936 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.524e-05/2.543, allocations: 14.42 kB / 0.6936 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/2.544, allocations: 222.3 kB / 0.6938 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/2.544, allocations: 8.859 kB / 0.6938 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005462/2.545, allocations: 0.6959 MB / 0.6945 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/2.545, allocations: 0.5625 kB / 0.6945 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005061/2.545, allocations: 414.8 kB / 0.6949 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/2.546, allocations: 173.4 kB / 0.695 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.875e-05/2.546, allocations: 20.8 kB / 0.695 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/2.546, allocations: 11.47 kB / 0.6951 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/2.546, allocations: 11.98 kB / 0.6951 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/2.546, allocations: 8.906 kB / 0.6951 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001021/2.547, allocations: 0.8101 MB / 0.6959 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.547, allocations: 1 kB / 0.6959 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004121/2.551, allocations: 1.259 MB / 0.6971 GB, free: 223.7 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.00711/2.558, allocations: 2.683 MB / 0.6997 GB, free: 223 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001109/2.559, allocations: 357.6 kB / 0.7001 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/2.559, allocations: 4 kB / 0.7001 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003514/2.56, allocations: 109.2 kB / 0.7002 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/2.561, allocations: 144.1 kB / 0.7003 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009267/2.57, allocations: 6.373 MB / 0.7065 GB, free: 220.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/2.571, allocations: 0.9352 MB / 0.7074 GB, free: 220 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002056/2.571, allocations: 68.98 kB / 0.7075 GB, free: 220 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/2.571, allocations: 228.6 kB / 0.7077 GB, free: 220 MB / 0.5762 GB Notification: Performance of SimCode: time 1.353e-06/2.571, allocations: 6.625 kB / 0.7077 GB, free: 220 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07613/2.647, allocations: 53.94 MB / 0.7604 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/2.647, allocations: 252.3 kB / 0.7606 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.099/6.746, allocations: 0 / 0.7606 GB, free: 181.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)