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.7774/0.7774, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.00029, allocations: 15.98 kB / 204.1 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.132, allocations: 31.33 MB / 235.4 MB, free: 5.453 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.465/1.597, allocations: 293.6 MB / 0.5167 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03946/1.636, allocations: 37.81 MB / 0.5536 GB, free: 8.078 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/1.636, allocations: 0 / 0.5536 GB, free: 8.078 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.0003059/1.637, allocations: 87.53 kB / 0.5537 GB, free: 7.992 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/1.637, allocations: 83.38 kB / 0.5537 GB, free: 7.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01783/1.655, allocations: 7.207 MB / 0.5608 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000429/1.655, allocations: 330.8 kB / 0.5611 GB, free: 388 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/1.655, allocations: 114.6 kB / 0.5612 GB, free: 272 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/1.655, allocations: 131.4 kB / 0.5613 GB, free: 140 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/1.656, allocations: 115.4 kB / 0.5614 GB, free: 24 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/1.656, allocations: 12 kB / 0.5615 GB, free: 12 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02551/1.681, allocations: 17.8 MB / 0.5788 GB, free: 14.18 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.65e-05/1.681, allocations: 39.73 kB / 0.5789 GB, free: 14.15 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/1.681, allocations: 131.3 kB / 0.579 GB, free: 14.02 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01526/1.697, allocations: 8.48 MB / 0.5873 GB, free: 5.52 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/1.697, allocations: 0 / 0.5873 GB, free: 5.52 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.142e-06/1.697, allocations: 0 / 0.5873 GB, free: 5.52 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/1.697, allocations: 4 kB / 0.5873 GB, free: 5.516 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.00309/1.7, allocations: 1.454 MB / 0.5887 GB, free: 4.008 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/1.7, allocations: 12.03 kB / 0.5887 GB, free: 3.996 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.648e-05/1.7, allocations: 62.53 kB / 0.5888 GB, free: 3.926 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.311e-05/1.7, allocations: 23.72 kB / 0.5888 GB, free: 3.902 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/1.7, allocations: 236.6 kB / 0.589 GB, free: 3.633 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/1.7, allocations: 16.44 kB / 0.589 GB, free: 3.617 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/1.7, allocations: 20 kB / 0.5891 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004035/1.701, allocations: 325 kB / 0.5894 GB, free: 3.25 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/1.701, allocations: 7.938 kB / 0.5894 GB, free: 3.242 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/1.701, allocations: 8 kB / 0.5894 GB, free: 3.234 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/1.701, allocations: 13.55 kB / 0.5894 GB, free: 3.223 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002475/1.701, allocations: 181 kB / 0.5896 GB, free: 3.047 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.03334/1.734, allocations: 18.05 MB / 0.6072 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/1.735, allocations: 146.6 kB / 0.6073 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.845e-05/1.735, allocations: 88.83 kB / 0.6074 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1391/1.874, allocations: 77.46 MB / 0.6831 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/1.874, allocations: 38.5 kB / 0.6831 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.924e-06/1.874, allocations: 0 / 0.6831 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008829/1.875, allocations: 419.4 kB / 0.6835 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/1.875, allocations: 77.11 kB / 0.6836 GB, free: 8.039 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/1.875, allocations: 227.1 kB / 0.6838 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/1.875, allocations: 25.7 kB / 0.6838 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.855e-05/1.875, allocations: 156.4 kB / 0.684 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/1.875, allocations: 110.3 kB / 0.6841 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.135e-05/1.875, allocations: 49.69 kB / 0.6841 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.995e-05/1.876, allocations: 334.8 kB / 0.6844 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/1.876, allocations: 71.98 kB / 0.6845 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/1.876, allocations: 137.9 kB / 0.6846 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/1.876, allocations: 229.3 kB / 0.6849 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.876, allocations: 3.938 kB / 0.6849 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004274/1.877, allocations: 306 kB / 0.6852 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/1.877, allocations: 7.984 kB / 0.6852 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/1.877, allocations: 4 kB / 0.6852 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009976/1.878, allocations: 136.9 kB / 0.6853 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.567e-05/1.878, allocations: 19.92 kB / 0.6853 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004981/1.878, allocations: 0.607 MB / 0.6859 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/1.878, allocations: 35.56 kB / 0.6859 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/1.878, allocations: 8 kB / 0.686 GB, free: 5.496 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.0001253/1.879, allocations: 145.7 kB / 0.6861 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/1.879, allocations: 19.72 kB / 0.6861 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008817/1.88, allocations: 0.6026 MB / 0.6867 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005333/1.88, allocations: 228.8 kB / 0.6869 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/1.88, allocations: 7.875 kB / 0.6869 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/1.88, allocations: 4 kB / 0.6869 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/1.881, allocations: 0.7414 MB / 0.6877 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.881, allocations: 0 / 0.6877 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-05/1.881, allocations: 23.94 kB / 0.6877 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006993/1.882, allocations: 136.7 kB / 0.6878 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/1.882, allocations: 8 kB / 0.6878 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004495/1.882, allocations: 0.6358 MB / 0.6884 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/1.882, allocations: 0 / 0.6884 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006068/1.883, allocations: 350 kB / 0.6888 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.413e-05/1.883, allocations: 108.7 kB / 0.6889 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.339e-05/1.883, allocations: 11.84 kB / 0.6889 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/1.883, allocations: 11.98 kB / 0.6889 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.211e-05/1.883, allocations: 7.984 kB / 0.6889 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/1.883, allocations: 4 kB / 0.6889 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002159/1.884, allocations: 238 kB / 0.6891 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.884, allocations: 0 / 0.6891 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002622/1.886, allocations: 1.214 MB / 0.6903 GB, free: 0.8164 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.1479/2.034, allocations: 2.596 MB / 0.6929 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006726/2.035, allocations: 246.3 kB / 0.6931 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/2.035, allocations: 1.281 kB / 0.6931 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002467/2.035, allocations: 97.12 kB / 0.6932 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007692/2.036, allocations: 120.7 kB / 0.6933 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/2.039, allocations: 3.153 MB / 0.6964 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/2.04, allocations: 0.7662 MB / 0.6971 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001375/2.04, allocations: 28.03 kB / 0.6972 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/2.04, allocations: 95.45 kB / 0.6972 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of SimCode: time 3.81e-07/2.04, allocations: 0 / 0.6972 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05601/2.096, allocations: 48.02 MB / 0.7441 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001251/2.096, allocations: 236.9 kB / 0.7444 GB, free: 197 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.764/5.86, allocations: 3.172 kB / 0.7444 GB, free: 197 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)