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.8124/0.8124, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002872, allocations: 11.98 kB / 204.1 MB, free: 9.992 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1471, allocations: 31.33 MB / 235.4 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.SimpleExamples.TestBend): time 1.527/1.674, allocations: 293.8 MB / 0.5168 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03977/1.713, allocations: 38.25 MB / 0.5542 GB, free: 7.441 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/1.714, allocations: 4 kB / 0.5542 GB, free: 7.438 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.0004926/1.714, allocations: 239.3 kB / 0.5544 GB, free: 7.203 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/1.715, allocations: 243.1 kB / 0.5546 GB, free: 6.965 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01848/1.733, allocations: 7.356 MB / 0.5618 GB, free: 15.61 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005505/1.734, allocations: 474.8 kB / 0.5623 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/1.734, allocations: 174 kB / 0.5624 GB, free: 14.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/1.734, allocations: 215.1 kB / 0.5626 GB, free: 14.76 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/1.734, allocations: 287.1 kB / 0.5629 GB, free: 14.48 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/1.734, allocations: 16 kB / 0.5629 GB, free: 14.46 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02512/1.759, allocations: 17.87 MB / 0.5804 GB, free: 12.57 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/1.76, allocations: 175.3 kB / 0.5805 GB, free: 12.39 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002525/1.76, allocations: 254.3 kB / 0.5808 GB, free: 12.14 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/1.776, allocations: 8.862 MB / 0.5894 GB, free: 3.262 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/1.776, allocations: 0 / 0.5894 GB, free: 3.262 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.382e-06/1.776, allocations: 0 / 0.5894 GB, free: 3.262 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/1.776, allocations: 4 kB / 0.5894 GB, free: 3.258 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.004104/1.78, allocations: 1.827 MB / 0.5912 GB, free: 1.379 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/1.78, allocations: 8.031 kB / 0.5912 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.791e-05/1.78, allocations: 70.47 kB / 0.5913 GB, free: 1.293 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.733e-05/1.78, allocations: 67.16 kB / 0.5914 GB, free: 1.227 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/1.781, allocations: 0.4904 MB / 0.5918 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/1.781, allocations: 20.56 kB / 0.5919 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/1.781, allocations: 27.94 kB / 0.5919 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005243/1.781, allocations: 429.3 kB / 0.5923 GB, free: 192 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/1.781, allocations: 4 kB / 0.5923 GB, free: 188 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/1.782, allocations: 5.312 kB / 0.5923 GB, free: 184 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/1.782, allocations: 19.98 kB / 0.5923 GB, free: 164 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/1.782, allocations: 341.8 kB / 0.5926 GB, free: 15.82 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.03428/1.816, allocations: 18.58 MB / 0.6108 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/1.817, allocations: 180.2 kB / 0.611 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/1.817, allocations: 105.5 kB / 0.6111 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.14/1.957, allocations: 77.47 MB / 0.6867 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/1.957, allocations: 34.56 kB / 0.6867 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 3.747e-06/1.957, allocations: 0 / 0.6867 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.00191/1.959, allocations: 0.5956 MB / 0.6873 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/1.959, allocations: 106.8 kB / 0.6874 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/1.96, allocations: 1 MB / 0.6884 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/1.96, allocations: 33.7 kB / 0.6884 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00024/1.961, allocations: 300.1 kB / 0.6887 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.225e-05/1.961, allocations: 130.1 kB / 0.6888 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/1.961, allocations: 61.59 kB / 0.6889 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000142/1.961, allocations: 386.7 kB / 0.6893 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/1.961, allocations: 160.4 kB / 0.6894 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/1.961, allocations: 235.1 kB / 0.6897 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/1.962, allocations: 332.8 kB / 0.69 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/1.962, allocations: 0 / 0.69 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007286/1.963, allocations: 0.536 MB / 0.6905 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/1.963, allocations: 4 kB / 0.6905 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/1.963, allocations: 4 kB / 0.6905 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001674/1.964, allocations: 220.8 kB / 0.6907 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.26e-05/1.964, allocations: 19.94 kB / 0.6907 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1436/2.108, allocations: 0.6812 MB / 0.6914 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/2.108, allocations: 41.47 kB / 0.6914 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/2.108, allocations: 11.34 kB / 0.6914 GB, free: 225.3 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.000297/2.109, allocations: 250.8 kB / 0.6917 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/2.109, allocations: 61.88 kB / 0.6917 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008028/2.11, allocations: 0.7021 MB / 0.6924 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003231/2.11, allocations: 251.8 kB / 0.6927 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/2.11, allocations: 0 / 0.6927 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/2.11, allocations: 2.719 kB / 0.6927 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/2.111, allocations: 0.9822 MB / 0.6936 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/2.111, allocations: 1.094 kB / 0.6936 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.792e-05/2.111, allocations: 20.2 kB / 0.6937 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001385/2.113, allocations: 215.4 kB / 0.6939 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/2.113, allocations: 10.22 kB / 0.6939 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005038/2.113, allocations: 0.7031 MB / 0.6946 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/2.113, allocations: 2.156 kB / 0.6946 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004984/2.114, allocations: 417.7 kB / 0.695 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/2.114, allocations: 170.8 kB / 0.6951 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.676e-05/2.114, allocations: 11.09 kB / 0.6951 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/2.114, allocations: 13.28 kB / 0.6951 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/2.114, allocations: 14.55 kB / 0.6952 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/2.114, allocations: 5.734 kB / 0.6952 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009144/2.115, allocations: 0.8131 MB / 0.696 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/2.115, allocations: 1.25 kB / 0.696 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002982/2.118, allocations: 1.259 MB / 0.6972 GB, free: 223.6 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.006004/2.124, allocations: 2.687 MB / 0.6998 GB, free: 222.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006708/2.125, allocations: 361 kB / 0.7002 GB, free: 222.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/2.125, allocations: 0 / 0.7002 GB, free: 222.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002682/2.125, allocations: 108.4 kB / 0.7003 GB, free: 222.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008443/2.126, allocations: 146.4 kB / 0.7004 GB, free: 222.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008004/2.134, allocations: 6.38 MB / 0.7066 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/2.135, allocations: 0.9346 MB / 0.7075 GB, free: 219.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001942/2.135, allocations: 60.48 kB / 0.7076 GB, free: 219.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/2.135, allocations: 236.3 kB / 0.7078 GB, free: 219.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.4e-07/2.135, allocations: 2.5 kB / 0.7078 GB, free: 219.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07163/2.207, allocations: 53.91 MB / 0.7605 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/2.207, allocations: 228.3 kB / 0.7607 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.272/6.479, allocations: 0 / 0.7607 GB, free: 181.8 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)