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.7953/0.7953, allocations: 150.9 MB / 166 MB, free: 14.7 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002967, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1589, allocations: 31.32 MB / 235.4 MB, free: 5.477 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.TestDiaphragm): time 1.53/1.689, allocations: 292.6 MB / 0.5155 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04131/1.73, allocations: 37.81 MB / 0.5525 GB, free: 8.238 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/1.73, allocations: 3.938 kB / 0.5525 GB, free: 8.234 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/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.0004149/1.731, allocations: 88.55 kB / 0.5525 GB, free: 8.148 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/1.731, allocations: 87.36 kB / 0.5526 GB, free: 8.062 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02209/1.753, allocations: 7.206 MB / 0.5597 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005705/1.754, allocations: 326.9 kB / 0.56 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/1.754, allocations: 115.1 kB / 0.5601 GB, free: 428 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/1.754, allocations: 131.3 kB / 0.5602 GB, free: 296 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/1.755, allocations: 107.4 kB / 0.5603 GB, free: 188 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.88e-05/1.755, allocations: 12 kB / 0.5603 GB, free: 176 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03018/1.785, allocations: 17.81 MB / 0.5777 GB, free: 14.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.485e-05/1.785, allocations: 47.77 kB / 0.5778 GB, free: 14.29 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/1.785, allocations: 123.3 kB / 0.5779 GB, free: 14.17 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0189/1.804, allocations: 8.48 MB / 0.5862 GB, free: 5.672 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/1.804, allocations: 0 / 0.5862 GB, free: 5.672 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.343e-06/1.804, allocations: 0 / 0.5862 GB, free: 5.672 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/1.804, allocations: 0 / 0.5862 GB, free: 5.672 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004223/1.808, allocations: 1.458 MB / 0.5876 GB, free: 4.16 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/1.808, allocations: 12.03 kB / 0.5876 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.37e-05/1.808, allocations: 27.72 kB / 0.5876 GB, free: 4.121 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/1.809, allocations: 232.6 kB / 0.5878 GB, free: 3.855 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/1.809, allocations: 20.44 kB / 0.5879 GB, free: 3.836 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/1.809, allocations: 16 kB / 0.5879 GB, free: 3.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004726/1.809, allocations: 317.1 kB / 0.5882 GB, free: 3.48 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/1.809, allocations: 7.875 kB / 0.5882 GB, free: 3.473 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/1.809, allocations: 8 kB / 0.5882 GB, free: 3.465 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/1.809, allocations: 17.72 kB / 0.5882 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/1.81, allocations: 169.1 kB / 0.5884 GB, free: 3.285 MB / 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.03522/1.845, allocations: 18.06 MB / 0.606 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004691/1.845, allocations: 150.5 kB / 0.6062 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/1.845, allocations: 84.84 kB / 0.6062 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1449/1.99, allocations: 77.47 MB / 0.6819 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/1.99, allocations: 30.56 kB / 0.6819 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.024e-06/1.99, allocations: 0 / 0.6819 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009147/1.991, allocations: 427.4 kB / 0.6823 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/1.991, allocations: 81.11 kB / 0.6824 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/1.992, allocations: 223.1 kB / 0.6826 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/1.992, allocations: 25.7 kB / 0.6826 GB, free: 8.004 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/1.992, allocations: 156.4 kB / 0.6828 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.852e-05/1.992, allocations: 122.2 kB / 0.6829 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.771e-05/1.992, allocations: 49.7 kB / 0.683 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001225/1.992, allocations: 334.8 kB / 0.6833 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/1.992, allocations: 75.97 kB / 0.6833 GB, free: 7.262 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/1.992, allocations: 126 kB / 0.6835 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/1.993, allocations: 237.2 kB / 0.6837 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.993, allocations: 0 / 0.6837 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004534/1.993, allocations: 298 kB / 0.684 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/1.993, allocations: 11.94 kB / 0.684 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/1.993, allocations: 0 / 0.684 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/1.994, allocations: 140.9 kB / 0.6841 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.645e-05/1.994, allocations: 19.92 kB / 0.6841 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005091/1.995, allocations: 0.6123 MB / 0.6847 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/1.995, allocations: 35.52 kB / 0.6848 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/1.995, allocations: 12 kB / 0.6848 GB, free: 5.711 MB / 0.5762 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.0001364/1.995, allocations: 141.8 kB / 0.6849 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/1.995, allocations: 19.72 kB / 0.6849 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009546/1.996, allocations: 0.5993 MB / 0.6855 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005355/1.997, allocations: 226.3 kB / 0.6857 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.997, allocations: 7.938 kB / 0.6857 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/1.997, allocations: 0 / 0.6857 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/1.998, allocations: 0.7422 MB / 0.6865 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.998, allocations: 0 / 0.6865 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/1.998, allocations: 27.03 kB / 0.6865 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006634/1.999, allocations: 136.7 kB / 0.6866 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/1.999, allocations: 4 kB / 0.6866 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004639/1.999, allocations: 0.6381 MB / 0.6873 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.999, allocations: 0 / 0.6873 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000614/2, allocations: 345 kB / 0.6876 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/2, allocations: 108.8 kB / 0.6877 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.242e-05/2, allocations: 19.78 kB / 0.6877 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/2, allocations: 12 kB / 0.6877 GB, free: 2.496 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.14e-05/2, allocations: 11.98 kB / 0.6877 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-06/2, allocations: 0 / 0.6877 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002338/2, allocations: 241.9 kB / 0.688 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.5e-07/2, allocations: 0 / 0.688 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003183/2.004, allocations: 1.21 MB / 0.6891 GB, free: 1.039 MB / 0.5762 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.1618/2.166, allocations: 1.814 MB / 0.6909 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007589/2.166, allocations: 240.7 kB / 0.6911 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/2.166, allocations: 0.5312 kB / 0.6911 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002463/2.167, allocations: 94.16 kB / 0.6912 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007836/2.167, allocations: 117.5 kB / 0.6913 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008279/2.168, allocations: 0.6128 MB / 0.6919 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/2.168, allocations: 0.7662 MB / 0.6927 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001227/2.169, allocations: 28.64 kB / 0.6927 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/2.169, allocations: 24.31 kB / 0.6927 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/2.169, allocations: 1.969 kB / 0.6927 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.04614/2.215, allocations: 42.9 MB / 0.7346 GB, free: 205.4 MB / 0.5762 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)