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: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",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.8937/0.8937, allocations: 150.9 MB / 166 MB, free: 14.71 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003203, allocations: 15.97 kB / 204.1 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2276, allocations: 31.33 MB / 235.4 MB, free: 5.441 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.763/1.991, allocations: 293.5 MB / 0.5166 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04547/2.036, allocations: 37.81 MB / 0.5535 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/2.036, allocations: 0 / 0.5535 GB, free: 7.805 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.0003997/2.037, allocations: 84.52 kB / 0.5536 GB, free: 7.723 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/2.037, allocations: 83.38 kB / 0.5536 GB, free: 7.641 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02328/2.06, allocations: 7.213 MB / 0.5607 GB, free: 436 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005318/2.061, allocations: 334.9 kB / 0.561 GB, free: 100 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/2.061, allocations: 111.9 kB / 0.5611 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/2.061, allocations: 135.3 kB / 0.5612 GB, free: 15.85 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/2.061, allocations: 115.4 kB / 0.5614 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/2.062, allocations: 12 kB / 0.5614 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0314/2.093, allocations: 17.8 MB / 0.5787 GB, free: 13.9 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/2.093, allocations: 35.86 kB / 0.5788 GB, free: 13.87 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/2.093, allocations: 135.3 kB / 0.5789 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02298/2.116, allocations: 8.472 MB / 0.5872 GB, free: 5.242 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/2.116, allocations: 3.938 kB / 0.5872 GB, free: 5.238 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.048e-05/2.116, allocations: 4 kB / 0.5872 GB, free: 5.234 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/2.116, allocations: 4 kB / 0.5872 GB, free: 5.23 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.004614/2.121, allocations: 1.454 MB / 0.5886 GB, free: 3.723 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/2.121, allocations: 12.03 kB / 0.5886 GB, free: 3.711 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.849e-05/2.121, allocations: 62.53 kB / 0.5887 GB, free: 3.641 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.296e-05/2.121, allocations: 23.72 kB / 0.5887 GB, free: 3.617 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/2.121, allocations: 244.5 kB / 0.5889 GB, free: 3.34 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/2.122, allocations: 12.44 kB / 0.589 GB, free: 3.328 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/2.122, allocations: 20 kB / 0.589 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/2.122, allocations: 321 kB / 0.5893 GB, free: 2.965 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/2.122, allocations: 4 kB / 0.5893 GB, free: 2.961 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/2.122, allocations: 8 kB / 0.5893 GB, free: 2.953 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/2.122, allocations: 15.98 kB / 0.5893 GB, free: 2.938 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/2.122, allocations: 173 kB / 0.5895 GB, free: 2.77 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.03517/2.158, allocations: 18.05 MB / 0.6071 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004423/2.158, allocations: 146.6 kB / 0.6072 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/2.158, allocations: 86.23 kB / 0.6073 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1433/2.301, allocations: 77.47 MB / 0.683 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/2.302, allocations: 34.55 kB / 0.683 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.195e-06/2.302, allocations: 0 / 0.683 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008941/2.302, allocations: 419.4 kB / 0.6834 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/2.302, allocations: 85.05 kB / 0.6835 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/2.303, allocations: 227 kB / 0.6837 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/2.303, allocations: 29.7 kB / 0.6837 GB, free: 7.488 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.759e-05/2.303, allocations: 156.4 kB / 0.6839 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.442e-05/2.303, allocations: 106.4 kB / 0.684 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.224e-05/2.303, allocations: 45.7 kB / 0.684 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001212/2.303, allocations: 334.8 kB / 0.6844 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/2.303, allocations: 75.97 kB / 0.6844 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/2.303, allocations: 134 kB / 0.6846 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/2.304, allocations: 229.3 kB / 0.6848 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/2.304, allocations: 0 / 0.6848 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004215/2.304, allocations: 309.8 kB / 0.6851 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/2.304, allocations: 4 kB / 0.6851 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/2.304, allocations: 4 kB / 0.6851 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009782/2.305, allocations: 144.8 kB / 0.6852 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.722e-05/2.305, allocations: 16 kB / 0.6852 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005354/2.306, allocations: 0.6069 MB / 0.6858 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/2.306, allocations: 39.55 kB / 0.6859 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/2.306, allocations: 8.609 kB / 0.6859 GB, free: 5.211 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.0001208/2.306, allocations: 138.9 kB / 0.686 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/2.306, allocations: 23.66 kB / 0.686 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009693/2.307, allocations: 0.6026 MB / 0.6866 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005564/2.308, allocations: 234.3 kB / 0.6868 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/2.308, allocations: 3.938 kB / 0.6868 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/2.308, allocations: 4.844 kB / 0.6868 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/2.309, allocations: 0.7366 MB / 0.6876 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/2.309, allocations: 0 / 0.6876 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.719e-05/2.309, allocations: 19.98 kB / 0.6876 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007089/2.31, allocations: 136.7 kB / 0.6877 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/2.31, allocations: 4.938 kB / 0.6877 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004982/2.31, allocations: 0.6396 MB / 0.6883 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/2.31, allocations: 3.938 kB / 0.6883 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006344/2.311, allocations: 337.8 kB / 0.6887 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.033e-05/2.311, allocations: 116.7 kB / 0.6888 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/2.311, allocations: 11.84 kB / 0.6888 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/2.311, allocations: 8 kB / 0.6888 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/2.311, allocations: 7.984 kB / 0.6888 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/2.311, allocations: 4 kB / 0.6888 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002313/2.311, allocations: 237.9 kB / 0.689 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.311, allocations: 0 / 0.689 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00366/2.315, allocations: 1.214 MB / 0.6902 GB, free: 0.5469 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.2291/2.544, allocations: 2.595 MB / 0.6928 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007594/2.545, allocations: 249.2 kB / 0.693 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/2.545, allocations: 2.156 kB / 0.693 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002528/2.545, allocations: 94.83 kB / 0.6931 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007824/2.546, allocations: 122.3 kB / 0.6932 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004776/2.551, allocations: 3.154 MB / 0.6963 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/2.551, allocations: 0.765 MB / 0.697 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001731/2.551, allocations: 26.34 kB / 0.6971 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/2.551, allocations: 97.64 kB / 0.6971 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of SimCode: time 7.12e-07/2.551, allocations: 0.875 kB / 0.6971 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07254/2.624, allocations: 48.05 MB / 0.7441 GB, free: 196.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/2.624, allocations: 257.7 kB / 0.7443 GB, free: 196.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.926/6.55, allocations: 0 / 0.7443 GB, free: 196.7 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)