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.9329/0.9329, allocations: 150.9 MB / 167.1 MB, free: 14.46 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003612, allocations: 19.97 kB / 206 MB, free: 9.023 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1446, allocations: 31.32 MB / 237.3 MB, free: 5.746 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.631/1.776, allocations: 294.8 MB / 0.5196 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1988/1.975, allocations: 187.8 MB / 0.703 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/1.975, allocations: 7.938 kB / 0.703 GB, free: 0.6758 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.0002556/1.975, allocations: 64.77 kB / 0.7031 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004295/1.976, allocations: 146.7 kB / 0.7032 GB, free: 480 kB / 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.3649/2.341, allocations: 11.5 MB / 0.7144 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009248/2.342, allocations: 489.8 kB / 0.7149 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000346/2.342, allocations: 245.8 kB / 0.7151 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/2.342, allocations: 198.4 kB / 0.7153 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/2.343, allocations: 221.6 kB / 0.7155 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/2.343, allocations: 39.56 kB / 0.7156 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03392/2.377, allocations: 19.9 MB / 0.735 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002453/2.377, allocations: 96.03 kB / 0.7351 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003113/2.377, allocations: 224.7 kB / 0.7353 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02405/2.401, allocations: 9.862 MB / 0.745 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/2.401, allocations: 0.875 kB / 0.745 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.993e-06/2.402, allocations: 0 / 0.745 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.105e-05/2.402, allocations: 0 / 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.005647/2.407, allocations: 1.854 MB / 0.7468 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/2.407, allocations: 8.562 kB / 0.7468 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/2.407, allocations: 58.48 kB / 0.7468 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/2.408, allocations: 345.5 kB / 0.7472 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.451e-05/2.408, allocations: 60.61 kB / 0.7472 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.034e-05/2.408, allocations: 37.22 kB / 0.7473 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006241/2.409, allocations: 405.7 kB / 0.7476 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/2.409, allocations: 1.906 kB / 0.7476 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/2.409, allocations: 19.12 kB / 0.7477 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/2.409, allocations: 10.97 kB / 0.7477 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004845/2.409, allocations: 287.3 kB / 0.7479 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/2.411, allocations: 2.007 MB / 0.7499 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005427/2.412, allocations: 221.6 kB / 0.7501 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/2.412, allocations: 80.05 kB / 0.7502 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2361/2.648, allocations: 123.2 MB / 0.8705 GB, free: 13.24 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003231/2.648, allocations: 145.8 kB / 0.8707 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 2.004e-06/2.648, allocations: 0 / 0.8707 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001034/2.649, allocations: 409.1 kB / 0.8711 GB, free: 12.76 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/2.649, allocations: 55.41 kB / 0.8711 GB, free: 12.7 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000354/2.65, allocations: 307.5 kB / 0.8714 GB, free: 12.44 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/2.65, allocations: 41.09 kB / 0.8714 GB, free: 12.4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/2.65, allocations: 232.9 kB / 0.8717 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.047e-05/2.65, allocations: 80.36 kB / 0.8717 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/2.65, allocations: 72.8 kB / 0.8718 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001329/2.65, allocations: 344.7 kB / 0.8721 GB, free: 11.76 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/2.65, allocations: 81.11 kB / 0.8722 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/2.651, allocations: 179.6 kB / 0.8724 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/2.651, allocations: 269.5 kB / 0.8726 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/2.651, allocations: 0 / 0.8726 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008614/2.652, allocations: 386.5 kB / 0.873 GB, free: 11.01 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/2.652, allocations: 7.984 kB / 0.873 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/2.652, allocations: 4 kB / 0.873 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009788/2.653, allocations: 172 kB / 0.8732 GB, free: 10.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/2.653, allocations: 48.05 kB / 0.8732 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002324/2.656, allocations: 2.382 MB / 0.8756 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/2.656, allocations: 48.66 kB / 0.8756 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/2.656, allocations: 15.81 kB / 0.8756 GB, free: 8.375 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.0001826/2.656, allocations: 158.3 kB / 0.8758 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.955e-05/2.656, allocations: 35.8 kB / 0.8758 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006815/2.657, allocations: 314.2 kB / 0.8761 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/2.657, allocations: 4 kB / 0.8761 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/2.657, allocations: 0 / 0.8761 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/2.657, allocations: 7.078 kB / 0.8761 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003655/2.657, allocations: 391.9 kB / 0.8765 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/2.657, allocations: 0 / 0.8765 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/2.658, allocations: 48.97 kB / 0.8765 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/2.658, allocations: 72.59 kB / 0.8766 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/2.658, allocations: 1.5 kB / 0.8766 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004384/2.658, allocations: 0.5673 MB / 0.8772 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/2.658, allocations: 7.984 kB / 0.8772 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007575/2.659, allocations: 387.7 kB / 0.8775 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/2.659, allocations: 124 kB / 0.8777 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/2.659, allocations: 7.438 kB / 0.8777 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/2.66, allocations: 18.98 kB / 0.8777 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.578e-05/2.66, allocations: 27.83 kB / 0.8777 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/2.66, allocations: 9.75 kB / 0.8777 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002813/2.66, allocations: 232.4 kB / 0.8779 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/2.66, allocations: 0 / 0.8779 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004136/2.664, allocations: 1.476 MB / 0.8794 GB, free: 4.871 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.006276/2.67, allocations: 2.195 MB / 0.8815 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008238/2.671, allocations: 364.7 kB / 0.8819 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/2.671, allocations: 0 / 0.8819 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002602/2.672, allocations: 109.8 kB / 0.882 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/2.672, allocations: 75.98 kB / 0.8821 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/2.673, allocations: 0.7656 MB / 0.8828 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/2.674, allocations: 0.7951 MB / 0.8836 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001654/2.674, allocations: 46.89 kB / 0.8836 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.259e-05/2.674, allocations: 34.69 kB / 0.8837 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of SimCode: time 1.262e-06/2.674, allocations: 4 kB / 0.8837 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of Templates: time 0.06073/2.735, allocations: 47.35 MB / 0.9299 GB, free: 1.668 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)