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.8525/0.8525, allocations: 150.9 MB / 166.4 MB, free: 14.25 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005443/0.0005445, allocations: 15.98 kB / 204.6 MB, free: 9.52 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.233, allocations: 31.33 MB / 236 MB, free: 5.406 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.656/1.889, allocations: 294.6 MB / 0.5182 GB, free: 13.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03851/1.928, allocations: 34.68 MB / 0.552 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002171/1.928, allocations: 4 kB / 0.552 GB, free: 10.78 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.0003307/1.929, allocations: 103.3 kB / 0.5521 GB, free: 10.68 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/1.929, allocations: 99.17 kB / 0.5522 GB, free: 10.58 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02355/1.952, allocations: 9.634 MB / 0.5616 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/1.953, allocations: 350.9 kB / 0.562 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/1.953, allocations: 119.8 kB / 0.5621 GB, free: 496 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/1.953, allocations: 147.3 kB / 0.5622 GB, free: 348 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/1.953, allocations: 115.4 kB / 0.5623 GB, free: 232 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/1.954, allocations: 16 kB / 0.5624 GB, free: 216 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02849/1.982, allocations: 17.75 MB / 0.5797 GB, free: 14.44 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/1.982, allocations: 43.84 kB / 0.5797 GB, free: 14.39 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/1.982, allocations: 131.3 kB / 0.5799 GB, free: 14.27 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01839/2.001, allocations: 8.484 MB / 0.5881 GB, free: 5.766 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/2.001, allocations: 0 / 0.5881 GB, free: 5.766 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.134e-06/2.001, allocations: 4 kB / 0.5881 GB, free: 5.762 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/2.001, allocations: 3.938 kB / 0.5882 GB, free: 5.758 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.004079/2.005, allocations: 1.454 MB / 0.5896 GB, free: 4.254 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/2.005, allocations: 12.03 kB / 0.5896 GB, free: 4.242 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.955e-05/2.005, allocations: 62.53 kB / 0.5896 GB, free: 4.172 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.757e-05/2.005, allocations: 27.62 kB / 0.5897 GB, free: 4.145 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/2.005, allocations: 226.6 kB / 0.5899 GB, free: 3.883 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/2.005, allocations: 16.44 kB / 0.5899 GB, free: 3.863 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/2.005, allocations: 20 kB / 0.5899 GB, free: 3.844 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/2.006, allocations: 321 kB / 0.5902 GB, free: 3.496 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/2.006, allocations: 0 / 0.5902 GB, free: 3.496 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/2.006, allocations: 4 kB / 0.5902 GB, free: 3.492 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/2.006, allocations: 15.98 kB / 0.5902 GB, free: 3.477 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/2.006, allocations: 177 kB / 0.5904 GB, free: 3.305 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.03884/2.045, allocations: 18.06 MB / 0.6081 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004743/2.045, allocations: 150.5 kB / 0.6082 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/2.046, allocations: 88.84 kB / 0.6083 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1618/2.207, allocations: 77.46 MB / 0.6839 GB, free: 8.867 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/2.207, allocations: 34.55 kB / 0.684 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.144e-06/2.207, allocations: 4 kB / 0.684 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009679/2.208, allocations: 423.4 kB / 0.6844 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/2.209, allocations: 81.11 kB / 0.6844 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/2.209, allocations: 219.1 kB / 0.6847 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/2.209, allocations: 25.7 kB / 0.6847 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.718e-05/2.209, allocations: 156.4 kB / 0.6848 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.057e-05/2.209, allocations: 110.3 kB / 0.6849 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/2.209, allocations: 49.7 kB / 0.685 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001058/2.209, allocations: 334.8 kB / 0.6853 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/2.209, allocations: 75.97 kB / 0.6854 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/2.209, allocations: 137.9 kB / 0.6855 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/2.21, allocations: 229.2 kB / 0.6857 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/2.21, allocations: 0 / 0.6857 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004604/2.21, allocations: 309.9 kB / 0.686 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/2.21, allocations: 4 kB / 0.686 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/2.21, allocations: 7.938 kB / 0.686 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009615/2.211, allocations: 136.8 kB / 0.6862 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.719e-05/2.211, allocations: 13.97 kB / 0.6862 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00052/2.212, allocations: 0.6175 MB / 0.6868 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/2.212, allocations: 35.64 kB / 0.6868 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/2.212, allocations: 12 kB / 0.6868 GB, free: 5.734 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.0001423/2.212, allocations: 137.7 kB / 0.687 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.294e-05/2.212, allocations: 19.72 kB / 0.687 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008875/2.213, allocations: 0.6043 MB / 0.6876 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005248/2.214, allocations: 235.4 kB / 0.6878 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/2.214, allocations: 3.938 kB / 0.6878 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/2.214, allocations: 0 / 0.6878 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/2.215, allocations: 0.741 MB / 0.6885 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/2.215, allocations: 0 / 0.6885 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.867e-05/2.215, allocations: 19.98 kB / 0.6885 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003676/2.215, allocations: 108.8 kB / 0.6886 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/2.215, allocations: 4 kB / 0.6886 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004779/2.216, allocations: 0.642 MB / 0.6893 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/2.216, allocations: 0 / 0.6893 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006451/2.216, allocations: 339.9 kB / 0.6896 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.703e-05/2.217, allocations: 113.8 kB / 0.6897 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.63e-05/2.217, allocations: 15.84 kB / 0.6897 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/2.217, allocations: 4 kB / 0.6897 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/2.217, allocations: 15.92 kB / 0.6897 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/2.217, allocations: 4 kB / 0.6897 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000264/2.217, allocations: 237.9 kB / 0.69 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.3e-07/2.217, allocations: 0 / 0.69 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004145/2.221, allocations: 1.21 MB / 0.6911 GB, free: 1.098 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.1773/2.399, allocations: 2.538 MB / 0.6936 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007753/2.399, allocations: 257.3 kB / 0.6939 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/2.399, allocations: 0 / 0.6939 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003095/2.4, allocations: 100.8 kB / 0.694 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008893/2.401, allocations: 131.5 kB / 0.6941 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005003/2.406, allocations: 3.055 MB / 0.6971 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/2.406, allocations: 0.7662 MB / 0.6978 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001707/2.406, allocations: 29.58 kB / 0.6978 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/2.406, allocations: 93.89 kB / 0.6979 GB, free: 224 MB / 0.5762 GB Notification: Performance of SimCode: time 4e-07/2.406, allocations: 0 / 0.6979 GB, free: 224 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07343/2.48, allocations: 48.21 MB / 0.745 GB, free: 197.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/15.48, allocations: 16.44 kB / 0.745 GB, free: 197.2 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)