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.8269/0.8269, allocations: 150.9 MB / 167.1 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003685, allocations: 11.98 kB / 205.9 MB, free: 9.066 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1529, allocations: 31.33 MB / 237.3 MB, free: 5.723 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 1.615/1.768, allocations: 294.8 MB / 0.5196 GB, free: 12.99 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1928/1.961, allocations: 187.8 MB / 0.7031 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004867/1.961, allocations: 7.938 kB / 0.7031 GB, free: 0.7188 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.0003175/1.961, allocations: 59.5 kB / 0.7031 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000581/1.962, allocations: 150.8 kB / 0.7033 GB, free: 0.5117 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.3314/2.293, allocations: 11.49 MB / 0.7145 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005868/2.294, allocations: 498.1 kB / 0.715 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/2.294, allocations: 237.9 kB / 0.7152 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/2.295, allocations: 200.9 kB / 0.7154 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/2.295, allocations: 223 kB / 0.7156 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/2.295, allocations: 40.75 kB / 0.7157 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03249/2.327, allocations: 19.91 MB / 0.7351 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002161/2.328, allocations: 91.8 kB / 0.7352 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003572/2.328, allocations: 225.9 kB / 0.7354 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02433/2.352, allocations: 9.859 MB / 0.745 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/2.352, allocations: 0.75 kB / 0.745 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.854e-06/2.352, allocations: 1.203 kB / 0.745 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.151e-05/2.352, allocations: 0.8438 kB / 0.745 GB, free: 15.55 MB / 0.5919 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.005549/2.358, allocations: 1.858 MB / 0.7468 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/2.358, allocations: 11.69 kB / 0.7469 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/2.358, allocations: 54 kB / 0.7469 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004807/2.359, allocations: 339.7 kB / 0.7472 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.541e-05/2.359, allocations: 56.23 kB / 0.7473 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.07e-05/2.359, allocations: 42 kB / 0.7473 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006284/2.359, allocations: 402 kB / 0.7477 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/2.359, allocations: 7.609 kB / 0.7477 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.727e-05/2.359, allocations: 19.97 kB / 0.7477 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/2.359, allocations: 8.531 kB / 0.7477 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/2.36, allocations: 284.2 kB / 0.748 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/2.362, allocations: 2.013 MB / 0.75 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005424/2.362, allocations: 221.1 kB / 0.7502 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/2.363, allocations: 82.27 kB / 0.7503 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2322/2.595, allocations: 123.2 MB / 0.8706 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003103/2.595, allocations: 132.9 kB / 0.8707 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 3.376e-06/2.595, allocations: 0 / 0.8707 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001061/2.596, allocations: 422.1 kB / 0.8711 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/2.596, allocations: 54.59 kB / 0.8712 GB, free: 12.74 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00041/2.597, allocations: 319.2 kB / 0.8715 GB, free: 12.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/2.597, allocations: 29.08 kB / 0.8715 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/2.597, allocations: 239.9 kB / 0.8717 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.159e-05/2.597, allocations: 75.33 kB / 0.8718 GB, free: 12.19 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/2.597, allocations: 74.66 kB / 0.8719 GB, free: 12.13 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000111/2.597, allocations: 343 kB / 0.8722 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/2.597, allocations: 81.92 kB / 0.8723 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/2.598, allocations: 183.1 kB / 0.8725 GB, free: 11.56 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004278/2.598, allocations: 269.5 kB / 0.8727 GB, free: 11.33 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/2.598, allocations: 0 / 0.8727 GB, free: 11.33 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009008/2.599, allocations: 386.8 kB / 0.8731 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/2.599, allocations: 9.562 kB / 0.8731 GB, free: 11.04 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/2.599, allocations: 4 kB / 0.8731 GB, free: 11.03 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/2.6, allocations: 167.8 kB / 0.8733 GB, free: 10.88 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/2.6, allocations: 52.94 kB / 0.8733 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/2.603, allocations: 2.379 MB / 0.8756 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/2.603, allocations: 42.67 kB / 0.8757 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/2.603, allocations: 20.19 kB / 0.8757 GB, free: 8.406 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.0001666/2.603, allocations: 154.4 kB / 0.8759 GB, free: 8.273 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/2.603, allocations: 31.62 kB / 0.8759 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000726/2.604, allocations: 325 kB / 0.8762 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/2.604, allocations: 0 / 0.8762 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/2.604, allocations: 4 kB / 0.8762 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/2.604, allocations: 0 / 0.8762 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/2.604, allocations: 394.2 kB / 0.8766 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/2.604, allocations: 1.094 kB / 0.8766 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/2.605, allocations: 46.98 kB / 0.8766 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004125/2.605, allocations: 72.28 kB / 0.8767 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/2.605, allocations: 7.625 kB / 0.8767 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003987/2.605, allocations: 0.5656 MB / 0.8772 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/2.605, allocations: 0 / 0.8772 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007258/2.606, allocations: 380.6 kB / 0.8776 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/2.606, allocations: 124.5 kB / 0.8777 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/2.606, allocations: 7.75 kB / 0.8777 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/2.607, allocations: 21.25 kB / 0.8778 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/2.607, allocations: 23.72 kB / 0.8778 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/2.607, allocations: 15.73 kB / 0.8778 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002207/2.607, allocations: 227.6 kB / 0.878 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/2.607, allocations: 0 / 0.878 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003613/2.611, allocations: 1.478 MB / 0.8795 GB, free: 4.914 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.006955/2.618, allocations: 2.209 MB / 0.8816 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000823/2.618, allocations: 361.7 kB / 0.882 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/2.618, allocations: 0 / 0.882 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002882/2.619, allocations: 105.3 kB / 0.8821 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/2.619, allocations: 78.61 kB / 0.8821 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/2.621, allocations: 0.7617 MB / 0.8829 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/2.621, allocations: 0.799 MB / 0.8837 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001757/2.621, allocations: 50.89 kB / 0.8837 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.739e-05/2.621, allocations: 33.42 kB / 0.8837 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/2.621, allocations: 3.094 kB / 0.8837 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of Templates: time 0.05912/2.68, allocations: 47.36 MB / 0.93 GB, free: 1.707 MB / 0.7637 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 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)