Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9363/0.9363, allocations: 150.9 MB / 166.7 MB, free: 14.71 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005105/0.0005109, allocations: 19.97 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2783, allocations: 31.32 MB / 236.1 MB, free: 5.445 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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve): time 2.009/2.288, allocations: 293.9 MB / 0.5176 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2342/2.522, allocations: 185.9 MB / 0.6991 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/2.522, allocations: 7.938 kB / 0.6991 GB, free: 3.125 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:56:3-57:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:58:3-59:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004054/2.523, allocations: 48.67 kB / 0.6992 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007475/2.524, allocations: 131 kB / 0.6993 GB, free: 2.949 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.5919/3.116, allocations: 10.13 MB / 0.7092 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001098/3.117, allocations: 493.5 kB / 0.7097 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004518/3.117, allocations: 247.2 kB / 0.7099 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/3.118, allocations: 198.4 kB / 0.7101 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003392/3.118, allocations: 222.4 kB / 0.7103 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/3.118, allocations: 40.25 kB / 0.7103 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0531/3.171, allocations: 19.83 MB / 0.7297 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004136/3.172, allocations: 93.78 kB / 0.7298 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005758/3.172, allocations: 226 kB / 0.73 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02225/3.194, allocations: 6.814 MB / 0.7367 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/3.194, allocations: 1.203 kB / 0.7367 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.255e-06/3.194, allocations: 0 / 0.7367 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.208e-05/3.194, allocations: 3.375 kB / 0.7367 GB, free: 3.465 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.008819/3.203, allocations: 1.858 MB / 0.7385 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/3.203, allocations: 10.75 kB / 0.7385 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/3.203, allocations: 55.62 kB / 0.7385 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005906/3.204, allocations: 327.7 kB / 0.7389 GB, free: 18.13 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.439e-05/3.204, allocations: 52.48 kB / 0.7389 GB, free: 18.1 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/3.204, allocations: 39.12 kB / 0.7389 GB, free: 18.1 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/3.205, allocations: 406.4 kB / 0.7393 GB, free: 18.01 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/3.205, allocations: 13.09 kB / 0.7393 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/3.205, allocations: 17.72 kB / 0.7394 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/3.205, allocations: 7.812 kB / 0.7394 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005206/3.206, allocations: 287.4 kB / 0.7396 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/3.208, allocations: 2.015 MB / 0.7416 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006084/3.208, allocations: 220.6 kB / 0.7418 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/3.208, allocations: 87.95 kB / 0.7419 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2524/3.461, allocations: 122.5 MB / 0.8616 GB, free: 4.578 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004496/3.461, allocations: 146 kB / 0.8617 GB, free: 4.453 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 3.587e-06/3.461, allocations: 4 kB / 0.8617 GB, free: 4.449 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001309/3.463, allocations: 398.5 kB / 0.8621 GB, free: 4.102 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/3.463, allocations: 59.52 kB / 0.8621 GB, free: 4.035 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/3.463, allocations: 311.8 kB / 0.8624 GB, free: 3.781 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/3.463, allocations: 33.33 kB / 0.8625 GB, free: 3.746 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/3.463, allocations: 247.6 kB / 0.8627 GB, free: 3.547 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 7.248e-05/3.464, allocations: 76.2 kB / 0.8628 GB, free: 3.484 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/3.464, allocations: 74.55 kB / 0.8628 GB, free: 3.43 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000169/3.464, allocations: 344.7 kB / 0.8632 GB, free: 3.098 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/3.464, allocations: 72.69 kB / 0.8632 GB, free: 3.051 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002533/3.464, allocations: 188 kB / 0.8634 GB, free: 2.859 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/3.465, allocations: 266 kB / 0.8637 GB, free: 2.633 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/3.465, allocations: 4 kB / 0.8637 GB, free: 2.629 MB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008246/3.466, allocations: 383 kB / 0.864 GB, free: 2.344 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/3.466, allocations: 12.62 kB / 0.8641 GB, free: 2.336 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/3.466, allocations: 4.562 kB / 0.8641 GB, free: 2.332 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/3.467, allocations: 167.4 kB / 0.8642 GB, free: 2.18 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/3.467, allocations: 54.34 kB / 0.8643 GB, free: 2.133 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/3.47, allocations: 2.375 MB / 0.8666 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/3.47, allocations: 51.41 kB / 0.8666 GB, free: 15.72 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/3.47, allocations: 15.38 kB / 0.8667 GB, free: 15.71 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002291/3.47, allocations: 158.2 kB / 0.8668 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/3.47, allocations: 31.62 kB / 0.8668 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007479/3.471, allocations: 317.8 kB / 0.8671 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/3.471, allocations: 8 kB / 0.8671 GB, free: 15.29 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/3.471, allocations: 0 / 0.8671 GB, free: 15.29 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/3.471, allocations: 0 / 0.8671 GB, free: 15.29 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004183/3.472, allocations: 396.5 kB / 0.8675 GB, free: 14.94 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/3.472, allocations: 1.203 kB / 0.8675 GB, free: 14.94 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/3.472, allocations: 44.02 kB / 0.8676 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004342/3.472, allocations: 81.77 kB / 0.8676 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/3.472, allocations: 11.61 kB / 0.8677 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000396/3.473, allocations: 0.5573 MB / 0.8682 GB, free: 14.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/3.473, allocations: 0 / 0.8682 GB, free: 14.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007313/3.474, allocations: 386 kB / 0.8686 GB, free: 13.95 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/3.474, allocations: 123.7 kB / 0.8687 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/3.474, allocations: 3.375 kB / 0.8687 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/3.474, allocations: 26.02 kB / 0.8687 GB, free: 13.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.177e-05/3.474, allocations: 28.53 kB / 0.8687 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/3.474, allocations: 11.69 kB / 0.8688 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002351/3.474, allocations: 237.2 kB / 0.869 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/3.474, allocations: 0 / 0.869 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.005991/3.48, allocations: 1.467 MB / 0.8704 GB, free: 12.21 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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.01031/3.491, allocations: 2.281 MB / 0.8726 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001111/3.492, allocations: 363.4 kB / 0.873 GB, free: 9.98 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/3.492, allocations: 4.25 kB / 0.873 GB, free: 9.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002888/3.492, allocations: 107.2 kB / 0.8731 GB, free: 9.898 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005888/3.493, allocations: 81.98 kB / 0.8732 GB, free: 9.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/3.494, allocations: 0.9439 MB / 0.8741 GB, free: 8.922 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/3.495, allocations: 0.8026 MB / 0.8749 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/3.495, allocations: 39.42 kB / 0.8749 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of SimCode: time 1.984e-06/3.495, allocations: 0 / 0.8749 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of Templates: time 0.05515/3.55, allocations: 30.96 MB / 0.9051 GB, free: 9.227 MB / 0.7481 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)