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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7892/0.7892, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002485, allocations: 11.97 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1557, allocations: 31.32 MB / 236 MB, free: 3.871 MB / 186.7 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.639/1.794, allocations: 292 MB / 0.5156 GB, free: 9.969 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05259/1.847, allocations: 38.25 MB / 0.553 GB, free: 3.84 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/1.847, allocations: 4 kB / 0.553 GB, free: 3.836 MB / 442.7 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.0005656/1.848, allocations: 236.9 kB / 0.5532 GB, free: 3.605 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004421/1.848, allocations: 247 kB / 0.5535 GB, free: 3.363 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02001/1.868, allocations: 7.348 MB / 0.5606 GB, free: 12.02 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006212/1.869, allocations: 486.7 kB / 0.5611 GB, free: 11.54 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002694/1.869, allocations: 168.8 kB / 0.5613 GB, free: 11.38 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003381/1.87, allocations: 211.1 kB / 0.5615 GB, free: 11.17 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/1.87, allocations: 287.1 kB / 0.5617 GB, free: 10.89 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 4.226e-05/1.87, allocations: 16 kB / 0.5618 GB, free: 10.87 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02927/1.899, allocations: 17.88 MB / 0.5792 GB, free: 8.969 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002185/1.9, allocations: 171.4 kB / 0.5794 GB, free: 8.801 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002862/1.9, allocations: 258.2 kB / 0.5796 GB, free: 8.547 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01937/1.919, allocations: 8.869 MB / 0.5883 GB, free: 15.66 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.919, allocations: 0 / 0.5883 GB, free: 15.66 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.256e-06/1.919, allocations: 3.984 kB / 0.5883 GB, free: 15.65 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.787e-05/1.919, allocations: 0 / 0.5883 GB, free: 15.65 MB / 490.7 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.004243/1.924, allocations: 1.815 MB / 0.5901 GB, free: 13.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.924, allocations: 12.03 kB / 0.5901 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/1.924, allocations: 67.16 kB / 0.5901 GB, free: 13.71 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005848/1.924, allocations: 490.2 kB / 0.5906 GB, free: 13.18 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/1.924, allocations: 24.55 kB / 0.5906 GB, free: 13.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/1.924, allocations: 28 kB / 0.5907 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005696/1.925, allocations: 429.2 kB / 0.5911 GB, free: 12.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/1.925, allocations: 4 kB / 0.5911 GB, free: 12.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/1.925, allocations: 12 kB / 0.5911 GB, free: 12.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/1.925, allocations: 15.94 kB / 0.5911 GB, free: 12.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/1.926, allocations: 341.8 kB / 0.5914 GB, free: 12.31 MB / 490.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.03783/1.963, allocations: 18.59 MB / 0.6096 GB, free: 7.852 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005677/1.964, allocations: 177.9 kB / 0.6098 GB, free: 7.672 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/1.964, allocations: 97.47 kB / 0.6098 GB, free: 7.574 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1516/2.116, allocations: 77.47 MB / 0.6855 GB, free: 1.297 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/2.116, allocations: 42.48 kB / 0.6855 GB, free: 1.246 MB / 0.573 GB Notification: Performance of pre-optimization done (n=38): time 2.384e-06/2.116, allocations: 0 / 0.6855 GB, free: 1.246 MB / 0.573 GB Notification: Performance of matching and sorting (n=38): time 0.001719/2.118, allocations: 0.5879 MB / 0.6861 GB, free: 0.6289 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/2.118, allocations: 102.8 kB / 0.6862 GB, free: 0.5039 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1569/2.275, allocations: 1.003 MB / 0.6872 GB, free: 222.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/2.275, allocations: 29.8 kB / 0.6872 GB, free: 222.8 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/2.275, allocations: 304.3 kB / 0.6875 GB, free: 222.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 8.071e-05/2.275, allocations: 125.2 kB / 0.6876 GB, free: 222.7 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.904e-05/2.275, allocations: 67.34 kB / 0.6877 GB, free: 222.7 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 8.826e-05/2.275, allocations: 383.4 kB / 0.6881 GB, free: 222.4 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/2.275, allocations: 156.9 kB / 0.6882 GB, free: 222.4 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/2.276, allocations: 238.1 kB / 0.6884 GB, free: 222.3 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/2.276, allocations: 332.2 kB / 0.6888 GB, free: 222.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/2.276, allocations: 1.531 kB / 0.6888 GB, free: 222.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006773/2.277, allocations: 0.5318 MB / 0.6893 GB, free: 222.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/2.277, allocations: 9.031 kB / 0.6893 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/2.277, allocations: 2.531 kB / 0.6893 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/2.278, allocations: 222.5 kB / 0.6895 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.755e-05/2.278, allocations: 19.97 kB / 0.6895 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005142/2.279, allocations: 0.6793 MB / 0.6902 GB, free: 221.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/2.279, allocations: 43.48 kB / 0.6902 GB, free: 221.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/2.279, allocations: 12.16 kB / 0.6902 GB, free: 221.6 MB / 0.573 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.0002328/2.279, allocations: 252.3 kB / 0.6905 GB, free: 221.5 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.47e-05/2.279, allocations: 63.64 kB / 0.6905 GB, free: 221.4 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007211/2.28, allocations: 0.7013 MB / 0.6912 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003062/2.28, allocations: 249.8 kB / 0.6915 GB, free: 221.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/2.28, allocations: 1 kB / 0.6915 GB, free: 221.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/2.28, allocations: 1.688 kB / 0.6915 GB, free: 221.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/2.282, allocations: 0.9885 MB / 0.6924 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/2.282, allocations: 2.188 kB / 0.6924 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.245e-05/2.282, allocations: 20.3 kB / 0.6924 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/2.283, allocations: 213.7 kB / 0.6927 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/2.283, allocations: 4.984 kB / 0.6927 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004981/2.283, allocations: 0.7027 MB / 0.6933 GB, free: 220.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/2.283, allocations: 3.812 kB / 0.6933 GB, free: 220.3 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009552/2.284, allocations: 1.217 MB / 0.6945 GB, free: 219.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/2.285, allocations: 173.8 kB / 0.6947 GB, free: 219.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/2.285, allocations: 20.56 kB / 0.6947 GB, free: 219.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/2.285, allocations: 12.75 kB / 0.6947 GB, free: 219.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/2.285, allocations: 13.47 kB / 0.6947 GB, free: 219.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/2.285, allocations: 11.7 kB / 0.6948 GB, free: 219.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001064/2.286, allocations: 0.81 MB / 0.6955 GB, free: 219.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.61e-07/2.286, allocations: 0 / 0.6955 GB, free: 219.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004563/2.291, allocations: 1.291 MB / 0.6968 GB, free: 219.2 MB / 0.573 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.004634/2.295, allocations: 1.843 MB / 0.6986 GB, free: 219.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0006721/2.296, allocations: 352.3 kB / 0.6989 GB, free: 219 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.296, allocations: 0 / 0.6989 GB, free: 219 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002695/2.296, allocations: 108.5 kB / 0.699 GB, free: 219 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/2.297, allocations: 154.4 kB / 0.6992 GB, free: 219 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/2.299, allocations: 1.499 MB / 0.7007 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/2.299, allocations: 0.9384 MB / 0.7016 GB, free: 217.6 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001643/2.299, allocations: 61.52 kB / 0.7016 GB, free: 217.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.108e-05/2.299, allocations: 32.25 kB / 0.7017 GB, free: 217.6 MB / 0.573 GB Notification: Performance of SimCode: time 3.01e-07/2.299, allocations: 0 / 0.7017 GB, free: 217.6 MB / 0.573 GB Notification: Performance of Templates: time 0.04902/2.348, allocations: 45.78 MB / 0.7464 GB, free: 189.1 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)