Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8574/0.8574, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002714/0.0002715, allocations: 7.984 kB / 204.7 MB, free: 6.152 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1693, allocations: 31.32 MB / 236 MB, free: 3.855 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.TestDiaphragm): time 1.566/1.735, allocations: 291.9 MB / 0.5155 GB, free: 10.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04053/1.776, allocations: 37.81 MB / 0.5524 GB, free: 4.406 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/1.776, allocations: 4 kB / 0.5524 GB, free: 4.402 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/Diaphragm.mo:30:3-32: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/Diaphragm.mo:33:3-35:37: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.0003178/1.776, allocations: 72.31 kB / 0.5525 GB, free: 4.332 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/1.776, allocations: 87.36 kB / 0.5526 GB, free: 4.246 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01855/1.795, allocations: 7.213 MB / 0.5596 GB, free: 13.04 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004344/1.795, allocations: 334.9 kB / 0.5599 GB, free: 12.71 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/1.796, allocations: 112.9 kB / 0.5601 GB, free: 12.59 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/1.796, allocations: 139.4 kB / 0.5602 GB, free: 12.46 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/1.796, allocations: 115.4 kB / 0.5603 GB, free: 12.34 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/1.796, allocations: 12 kB / 0.5603 GB, free: 12.33 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02734/1.823, allocations: 17.8 MB / 0.5777 GB, free: 10.51 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 7.736e-05/1.824, allocations: 39.84 kB / 0.5777 GB, free: 10.47 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001845/1.824, allocations: 139.3 kB / 0.5779 GB, free: 10.33 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0173/1.841, allocations: 8.472 MB / 0.5861 GB, free: 1.84 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/1.841, allocations: 0 / 0.5861 GB, free: 1.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.052e-06/1.841, allocations: 0 / 0.5861 GB, free: 1.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/1.841, allocations: 0 / 0.5861 GB, free: 1.84 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003433/1.845, allocations: 1.466 MB / 0.5876 GB, free: 332 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/1.845, allocations: 8.031 kB / 0.5876 GB, free: 324 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.423e-05/1.845, allocations: 31.72 kB / 0.5876 GB, free: 292 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/1.845, allocations: 231.4 kB / 0.5878 GB, free: 20 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/1.845, allocations: 12.44 kB / 0.5878 GB, free: 8 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/1.845, allocations: 20.05 kB / 0.5879 GB, free: 15.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/1.845, allocations: 317.1 kB / 0.5882 GB, free: 15.65 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/1.845, allocations: 3.938 kB / 0.5882 GB, free: 15.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/1.845, allocations: 12 kB / 0.5882 GB, free: 15.63 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/1.845, allocations: 11.98 kB / 0.5882 GB, free: 15.62 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/1.846, allocations: 169 kB / 0.5883 GB, free: 15.46 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.03641/1.882, allocations: 18.07 MB / 0.606 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/1.883, allocations: 154.6 kB / 0.6061 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/1.883, allocations: 80.84 kB / 0.6062 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1546/2.037, allocations: 77.46 MB / 0.6819 GB, free: 5.012 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/2.037, allocations: 34.56 kB / 0.6819 GB, free: 4.969 MB / 0.573 GB Notification: Performance of pre-optimization done (n=34): time 2.655e-06/2.037, allocations: 0 / 0.6819 GB, free: 4.969 MB / 0.573 GB Notification: Performance of matching and sorting (n=34): time 0.0008877/2.038, allocations: 423.4 kB / 0.6823 GB, free: 4.527 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/2.038, allocations: 77.11 kB / 0.6824 GB, free: 4.434 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/2.039, allocations: 223.1 kB / 0.6826 GB, free: 4.203 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/2.039, allocations: 29.7 kB / 0.6826 GB, free: 4.168 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 9.274e-05/2.039, allocations: 152.4 kB / 0.6828 GB, free: 4.016 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 6.339e-05/2.039, allocations: 114.2 kB / 0.6829 GB, free: 3.902 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/2.039, allocations: 53.69 kB / 0.6829 GB, free: 3.844 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001066/2.039, allocations: 338.8 kB / 0.6832 GB, free: 3.504 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/2.039, allocations: 71.97 kB / 0.6833 GB, free: 3.434 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/2.039, allocations: 130 kB / 0.6834 GB, free: 3.285 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/2.04, allocations: 225.3 kB / 0.6837 GB, free: 3.047 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/2.04, allocations: 4 kB / 0.6837 GB, free: 3.043 MB / 0.573 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000419/2.04, allocations: 302.1 kB / 0.6839 GB, free: 2.738 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/2.04, allocations: 7.938 kB / 0.6839 GB, free: 2.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/2.04, allocations: 4 kB / 0.684 GB, free: 2.727 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009063/2.041, allocations: 136.6 kB / 0.6841 GB, free: 2.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.436e-05/2.041, allocations: 20.02 kB / 0.6841 GB, free: 2.57 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004713/2.041, allocations: 0.6109 MB / 0.6847 GB, free: 1.934 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/2.042, allocations: 35.53 kB / 0.6847 GB, free: 1.898 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/2.042, allocations: 7.984 kB / 0.6847 GB, free: 1.891 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.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 (15): * Single equations (assignments): 12 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001155/2.042, allocations: 139.2 kB / 0.6849 GB, free: 1.746 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/2.042, allocations: 31.72 kB / 0.6849 GB, free: 1.715 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008654/2.043, allocations: 0.6031 MB / 0.6855 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005089/2.043, allocations: 222.4 kB / 0.6857 GB, free: 0.8164 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/2.043, allocations: 3.938 kB / 0.6857 GB, free: 0.8125 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/2.043, allocations: 7.922 kB / 0.6857 GB, free: 0.8047 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/2.044, allocations: 0.7355 MB / 0.6864 GB, free: 12 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/2.044, allocations: 4 kB / 0.6864 GB, free: 8 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.174/2.218, allocations: 19.97 kB / 0.6865 GB, free: 222.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008369/2.219, allocations: 138.3 kB / 0.6866 GB, free: 222.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/2.219, allocations: 4.969 kB / 0.6866 GB, free: 222.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004521/2.22, allocations: 0.6366 MB / 0.6872 GB, free: 222.4 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/2.22, allocations: 3.969 kB / 0.6872 GB, free: 222.4 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/2.221, allocations: 1.042 MB / 0.6882 GB, free: 221.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/2.221, allocations: 112.6 kB / 0.6883 GB, free: 221.6 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/2.221, allocations: 7.703 kB / 0.6884 GB, free: 221.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/2.221, allocations: 8.703 kB / 0.6884 GB, free: 221.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/2.221, allocations: 7.781 kB / 0.6884 GB, free: 221.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/2.221, allocations: 10.72 kB / 0.6884 GB, free: 221.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002107/2.221, allocations: 236.4 kB / 0.6886 GB, free: 221.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.1e-07/2.221, allocations: 0 / 0.6886 GB, free: 221.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004059/2.225, allocations: 1.256 MB / 0.6898 GB, free: 221.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 12 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005858/2.231, allocations: 1.82 MB / 0.6916 GB, free: 221.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0007314/2.232, allocations: 247.6 kB / 0.6918 GB, free: 221.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/2.232, allocations: 0.5938 kB / 0.6918 GB, free: 221.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002725/2.232, allocations: 97.5 kB / 0.6919 GB, free: 221.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008446/2.233, allocations: 120.5 kB / 0.6921 GB, free: 221.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009228/2.234, allocations: 0.7961 MB / 0.6928 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/2.234, allocations: 0.771 MB / 0.6936 GB, free: 220.2 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001355/2.234, allocations: 25.14 kB / 0.6936 GB, free: 220.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.573e-05/2.235, allocations: 22.41 kB / 0.6936 GB, free: 220.2 MB / 0.573 GB Notification: Performance of SimCode: time 2.8e-07/2.235, allocations: 0 / 0.6936 GB, free: 220.2 MB / 0.573 GB Notification: Performance of Templates: time 0.04596/2.28, allocations: 43.07 MB / 0.7357 GB, free: 198.3 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)