Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9777/0.9777, allocations: 150.9 MB / 166.1 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003111, allocations: 11.97 kB / 204.2 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1609, allocations: 31.33 MB / 235.5 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.619/1.78, allocations: 293.8 MB / 0.5169 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1918/1.972, allocations: 185.9 MB / 0.6985 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/1.972, allocations: 7.938 kB / 0.6985 GB, free: 3.176 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.000294/1.972, allocations: 44.81 kB / 0.6985 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004734/1.973, allocations: 127.1 kB / 0.6986 GB, free: 3.008 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.302/2.275, allocations: 10.14 MB / 0.7085 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005518/2.275, allocations: 491.1 kB / 0.709 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/2.276, allocations: 248.5 kB / 0.7092 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/2.276, allocations: 197.3 kB / 0.7094 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/2.276, allocations: 225.6 kB / 0.7096 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/2.276, allocations: 42.06 kB / 0.7097 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02809/2.304, allocations: 19.82 MB / 0.729 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001845/2.304, allocations: 96.78 kB / 0.7291 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000301/2.305, allocations: 227.2 kB / 0.7293 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02043/2.325, allocations: 9.954 MB / 0.7391 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/2.325, allocations: 0.9688 kB / 0.7391 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.342e-06/2.325, allocations: 0 / 0.7391 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.275e-06/2.325, allocations: 0 / 0.7391 GB, free: 2.754 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.004837/2.33, allocations: 1.859 MB / 0.7409 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/2.33, allocations: 8.938 kB / 0.7409 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.365e-05/2.33, allocations: 55 kB / 0.7409 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/2.331, allocations: 324.9 kB / 0.7412 GB, free: 17.27 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.936e-05/2.331, allocations: 60.31 kB / 0.7413 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/2.331, allocations: 35.12 kB / 0.7413 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/2.331, allocations: 408.7 kB / 0.7417 GB, free: 17.08 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/2.331, allocations: 3.75 kB / 0.7417 GB, free: 17.08 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/2.331, allocations: 19.16 kB / 0.7417 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/2.331, allocations: 9.406 kB / 0.7418 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/2.332, allocations: 281.1 kB / 0.742 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/2.333, allocations: 2.033 MB / 0.744 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005009/2.334, allocations: 223.4 kB / 0.7442 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/2.334, allocations: 82.48 kB / 0.7443 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2182/2.552, allocations: 122.5 MB / 0.864 GB, free: 2.59 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/2.553, allocations: 139.6 kB / 0.8641 GB, free: 2.473 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 1.793e-06/2.553, allocations: 0 / 0.8641 GB, free: 2.473 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.0009845/2.554, allocations: 414.1 kB / 0.8645 GB, free: 2.113 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/2.554, allocations: 51.41 kB / 0.8646 GB, free: 2.051 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/2.554, allocations: 314 kB / 0.8649 GB, free: 1.793 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/2.554, allocations: 28.64 kB / 0.8649 GB, free: 1.762 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/2.554, allocations: 244.3 kB / 0.8651 GB, free: 1.57 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 5.077e-05/2.554, allocations: 69.7 kB / 0.8652 GB, free: 1.512 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.869e-05/2.554, allocations: 76.41 kB / 0.8653 GB, free: 1.453 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.959e-05/2.554, allocations: 344.6 kB / 0.8656 GB, free: 1.121 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/2.555, allocations: 77.23 kB / 0.8657 GB, free: 1.07 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/2.555, allocations: 192.8 kB / 0.8658 GB, free: 0.875 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000352/2.555, allocations: 266.5 kB / 0.8661 GB, free: 0.6445 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/2.555, allocations: 0 / 0.8661 GB, free: 0.6445 MB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007484/2.556, allocations: 387.9 kB / 0.8665 GB, free: 368 kB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/2.556, allocations: 9.203 kB / 0.8665 GB, free: 360 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/2.556, allocations: 4 kB / 0.8665 GB, free: 356 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009673/2.557, allocations: 169 kB / 0.8666 GB, free: 204 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/2.557, allocations: 57.09 kB / 0.8667 GB, free: 156 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/2.559, allocations: 2.379 MB / 0.869 GB, free: 13.78 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/2.559, allocations: 38.86 kB / 0.8691 GB, free: 13.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/2.559, allocations: 15.81 kB / 0.8691 GB, free: 13.73 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.0001524/2.56, allocations: 167.4 kB / 0.8692 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/2.56, allocations: 34.88 kB / 0.8693 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006857/2.56, allocations: 314.5 kB / 0.8696 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/2.56, allocations: 0 / 0.8696 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/2.56, allocations: 1.297 kB / 0.8696 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/2.56, allocations: 7.969 kB / 0.8696 GB, free: 13.31 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/2.561, allocations: 395.5 kB / 0.8699 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/2.561, allocations: 4 kB / 0.8699 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/2.561, allocations: 46.97 kB / 0.87 GB, free: 12.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004109/2.561, allocations: 67.78 kB / 0.8701 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/2.561, allocations: 11.12 kB / 0.8701 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003915/2.562, allocations: 0.5611 MB / 0.8706 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/2.562, allocations: 4 kB / 0.8706 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007201/2.563, allocations: 382.2 kB / 0.871 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/2.563, allocations: 123.7 kB / 0.8711 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.3e-05/2.563, allocations: 7.75 kB / 0.8711 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/2.563, allocations: 23.09 kB / 0.8711 GB, free: 11.81 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/2.563, allocations: 23.78 kB / 0.8712 GB, free: 11.79 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/2.563, allocations: 11.11 kB / 0.8712 GB, free: 11.78 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002098/2.563, allocations: 229.1 kB / 0.8714 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.82e-07/2.563, allocations: 0 / 0.8714 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003806/2.567, allocations: 1.466 MB / 0.8728 GB, free: 10.24 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.005966/2.573, allocations: 2.284 MB / 0.875 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000855/2.574, allocations: 363.5 kB / 0.8754 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/2.574, allocations: 0 / 0.8754 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003069/2.574, allocations: 118.9 kB / 0.8755 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005218/2.575, allocations: 83.72 kB / 0.8756 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/2.576, allocations: 0.9093 MB / 0.8765 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/2.577, allocations: 0.8063 MB / 0.8773 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002095/2.577, allocations: 55.97 kB / 0.8773 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.885e-05/2.577, allocations: 33.31 kB / 0.8773 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.577, allocations: 0 / 0.8773 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Templates: time 0.05436/2.632, allocations: 47.62 MB / 0.9239 GB, free: 6.59 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)