Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8379/0.8379, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 27.97 kB / 204.6 MB, free: 9.656 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1269, allocations: 31.32 MB / 236 MB, free: 5.379 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.SimpleExamples.TestDiaphragm): time 1.516/1.643, allocations: 294.7 MB / 0.5183 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0376/1.68, allocations: 34.67 MB / 0.5521 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/1.68, allocations: 0 / 0.5521 GB, free: 10.76 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.0003344/1.681, allocations: 120.3 kB / 0.5522 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/1.681, allocations: 91.23 kB / 0.5523 GB, free: 10.55 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.02166/1.703, allocations: 9.632 MB / 0.5617 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003815/1.703, allocations: 354.8 kB / 0.5621 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/1.703, allocations: 122.6 kB / 0.5622 GB, free: 464 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/1.703, allocations: 143.3 kB / 0.5623 GB, free: 320 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/1.703, allocations: 115.4 kB / 0.5624 GB, free: 204 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/1.703, allocations: 20 kB / 0.5625 GB, free: 184 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02638/1.73, allocations: 17.74 MB / 0.5798 GB, free: 14.41 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.755e-05/1.73, allocations: 39.84 kB / 0.5798 GB, free: 14.38 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/1.73, allocations: 139.3 kB / 0.58 GB, free: 14.24 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/1.743, allocations: 8.48 MB / 0.5882 GB, free: 5.738 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/1.743, allocations: 3.938 kB / 0.5882 GB, free: 5.734 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.192e-06/1.743, allocations: 0 / 0.5882 GB, free: 5.734 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/1.743, allocations: 0 / 0.5882 GB, free: 5.734 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.002941/1.746, allocations: 1.454 MB / 0.5897 GB, free: 4.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/1.746, allocations: 8.031 kB / 0.5897 GB, free: 4.223 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.843e-05/1.746, allocations: 66.53 kB / 0.5897 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/1.746, allocations: 27.62 kB / 0.5898 GB, free: 4.121 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/1.746, allocations: 231.1 kB / 0.59 GB, free: 3.855 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/1.746, allocations: 16.44 kB / 0.59 GB, free: 3.836 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/1.746, allocations: 24.61 kB / 0.59 GB, free: 3.812 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/1.747, allocations: 317 kB / 0.5903 GB, free: 3.469 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/1.747, allocations: 4 kB / 0.5903 GB, free: 3.465 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/1.747, allocations: 12 kB / 0.5903 GB, free: 3.453 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/1.747, allocations: 17.34 kB / 0.5903 GB, free: 3.438 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/1.747, allocations: 169 kB / 0.5905 GB, free: 3.273 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.03828/1.785, allocations: 18.05 MB / 0.6081 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/1.786, allocations: 154.6 kB / 0.6083 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/1.786, allocations: 85.39 kB / 0.6084 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1601/1.946, allocations: 77.46 MB / 0.684 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/1.946, allocations: 34.5 kB / 0.6841 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.883e-06/1.946, allocations: 0 / 0.6841 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008344/1.947, allocations: 423.4 kB / 0.6845 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/1.947, allocations: 81.11 kB / 0.6845 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/1.947, allocations: 227 kB / 0.6847 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/1.947, allocations: 29.7 kB / 0.6848 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.543e-05/1.947, allocations: 152.4 kB / 0.6849 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.713e-05/1.947, allocations: 114.3 kB / 0.685 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/1.947, allocations: 45.7 kB / 0.6851 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.948, allocations: 338.8 kB / 0.6854 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/1.948, allocations: 75.97 kB / 0.6855 GB, free: 7.262 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/1.948, allocations: 133.9 kB / 0.6856 GB, free: 7.109 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/1.948, allocations: 229.2 kB / 0.6858 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/1.948, allocations: 0 / 0.6858 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004573/1.949, allocations: 305.9 kB / 0.6861 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/1.949, allocations: 8 kB / 0.6861 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/1.949, allocations: 4.234 kB / 0.6861 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000968/1.95, allocations: 132.7 kB / 0.6862 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.948e-05/1.95, allocations: 23.92 kB / 0.6863 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005117/1.95, allocations: 0.6162 MB / 0.6869 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/1.95, allocations: 31.67 kB / 0.6869 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/1.95, allocations: 4 kB / 0.6869 GB, free: 5.715 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.0001212/1.951, allocations: 141.7 kB / 0.687 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.081e-05/1.951, allocations: 27.78 kB / 0.6871 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009205/1.951, allocations: 0.5956 MB / 0.6876 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005413/1.952, allocations: 238.3 kB / 0.6879 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/1.952, allocations: 7.938 kB / 0.6879 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.952, allocations: 0 / 0.6879 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/1.953, allocations: 0.7288 MB / 0.6886 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/1.953, allocations: 0 / 0.6886 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-05/1.953, allocations: 23.92 kB / 0.6886 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003598/1.954, allocations: 108.8 kB / 0.6887 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/1.954, allocations: 8 kB / 0.6887 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004978/1.954, allocations: 0.6324 MB / 0.6893 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.954, allocations: 0 / 0.6893 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006351/1.955, allocations: 349 kB / 0.6897 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/1.955, allocations: 114.1 kB / 0.6898 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/1.955, allocations: 15.83 kB / 0.6898 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/1.955, allocations: 4 kB / 0.6898 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.553e-05/1.955, allocations: 7.984 kB / 0.6898 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.994e-06/1.955, allocations: 7.938 kB / 0.6898 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000235/1.955, allocations: 237.9 kB / 0.69 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.955, allocations: 0 / 0.69 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002294/1.958, allocations: 1.218 MB / 0.6912 GB, free: 1.066 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.1408/2.099, allocations: 2.529 MB / 0.6937 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006258/2.099, allocations: 262.3 kB / 0.694 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/2.099, allocations: 0.5312 kB / 0.694 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00025/2.099, allocations: 102.9 kB / 0.6941 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007699/2.1, allocations: 128 kB / 0.6942 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/2.104, allocations: 3.058 MB / 0.6972 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/2.104, allocations: 0.7659 MB / 0.6979 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001139/2.104, allocations: 28.47 kB / 0.6979 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.706e-05/2.104, allocations: 97.14 kB / 0.698 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/2.104, allocations: 2.531 kB / 0.698 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06289/2.167, allocations: 48.18 MB / 0.7451 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/16.13, allocations: 8.859 kB / 0.7451 GB, free: 197.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)