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.7373/0.7373, allocations: 150.9 MB / 167.2 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 14.56 kB / 237.7 MB, free: 1.91 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04906/0.04938, allocations: 31.35 MB / 269.1 MB, free: 7.207 MB / 222.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.466/1.515, allocations: 294.9 MB / 0.5508 GB, free: 12.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4494/1.965, allocations: 187.8 MB / 0.7342 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002395/1.965, allocations: 9.078 kB / 0.7342 GB, free: 1.781 MB / 0.5919 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.0002002/1.965, allocations: 57.52 kB / 0.7343 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003143/1.966, allocations: 149.3 kB / 0.7344 GB, free: 1.781 MB / 0.5919 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.0258/1.991, allocations: 11.5 MB / 0.7457 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005376/1.992, allocations: 496 kB / 0.7461 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/1.992, allocations: 238.5 kB / 0.7464 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002174/1.993, allocations: 207.4 kB / 0.7466 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002125/1.993, allocations: 225.1 kB / 0.7468 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.144e-05/1.993, allocations: 39.97 kB / 0.7468 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02962/2.022, allocations: 19.89 MB / 0.7662 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001896/2.023, allocations: 101.5 kB / 0.7663 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002952/2.023, allocations: 229.3 kB / 0.7666 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02311/2.046, allocations: 9.897 MB / 0.7762 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/2.046, allocations: 1.156 kB / 0.7762 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.254e-06/2.046, allocations: 3 kB / 0.7762 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.526e-06/2.046, allocations: 1.203 kB / 0.7762 GB, free: 13.45 MB / 0.6075 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.004593/2.051, allocations: 1.862 MB / 0.7781 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/2.051, allocations: 9.406 kB / 0.7781 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.727e-05/2.051, allocations: 53.94 kB / 0.7781 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/2.051, allocations: 341.3 kB / 0.7784 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.688e-05/2.051, allocations: 60.55 kB / 0.7785 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/2.051, allocations: 41.58 kB / 0.7785 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005527/2.052, allocations: 405.3 kB / 0.7789 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/2.052, allocations: 3.156 kB / 0.7789 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/2.052, allocations: 13.12 kB / 0.7789 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/2.052, allocations: 15.16 kB / 0.779 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004461/2.052, allocations: 283 kB / 0.7792 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/2.054, allocations: 2.007 MB / 0.7812 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/2.055, allocations: 222.4 kB / 0.7814 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/2.055, allocations: 81.27 kB / 0.7815 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2235/2.278, allocations: 123.2 MB / 0.9018 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003114/2.279, allocations: 137.8 kB / 0.9019 GB, free: 8.41 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.174e-06/2.279, allocations: 0 / 0.9019 GB, free: 8.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.0009624/2.28, allocations: 406.8 kB / 0.9023 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/2.28, allocations: 55.41 kB / 0.9024 GB, free: 7.922 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/2.28, allocations: 316.4 kB / 0.9027 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/2.28, allocations: 30.8 kB / 0.9027 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000145/2.28, allocations: 241.4 kB / 0.9029 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.761e-05/2.28, allocations: 78.84 kB / 0.903 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/2.28, allocations: 73.92 kB / 0.9031 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001075/2.281, allocations: 338.8 kB / 0.9034 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/2.281, allocations: 85.12 kB / 0.9035 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/2.281, allocations: 174.1 kB / 0.9037 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003661/2.281, allocations: 269.8 kB / 0.9039 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/2.281, allocations: 1.203 kB / 0.9039 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007871/2.282, allocations: 394.6 kB / 0.9043 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/2.282, allocations: 8.062 kB / 0.9043 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/2.282, allocations: 6.062 kB / 0.9043 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009333/2.283, allocations: 166.8 kB / 0.9045 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/2.283, allocations: 55.06 kB / 0.9045 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/2.285, allocations: 2.374 MB / 0.9068 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/2.286, allocations: 55.64 kB / 0.9069 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/2.286, allocations: 15.98 kB / 0.9069 GB, free: 3.055 MB / 0.7325 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.0001646/2.286, allocations: 159.4 kB / 0.9071 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.095e-05/2.286, allocations: 31.62 kB / 0.9071 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006714/2.287, allocations: 323.8 kB / 0.9074 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/2.287, allocations: 4 kB / 0.9074 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-06/2.287, allocations: 4 kB / 0.9074 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/2.287, allocations: 0 / 0.9074 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003821/2.287, allocations: 387.6 kB / 0.9078 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/2.287, allocations: 0 / 0.9078 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/2.287, allocations: 47.86 kB / 0.9078 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004003/2.288, allocations: 76.95 kB / 0.9079 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/2.288, allocations: 13.08 kB / 0.9079 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003909/2.288, allocations: 0.564 MB / 0.9085 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/2.288, allocations: 0 / 0.9085 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007258/2.289, allocations: 379.2 kB / 0.9088 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/2.289, allocations: 124.7 kB / 0.9089 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/2.289, allocations: 4 kB / 0.9089 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/2.289, allocations: 12.92 kB / 0.909 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.586e-05/2.289, allocations: 34.98 kB / 0.909 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/2.289, allocations: 8 kB / 0.909 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002246/2.29, allocations: 240.3 kB / 0.9092 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of sort global known variables: time 5.41e-07/2.29, allocations: 0 / 0.9092 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003474/2.293, allocations: 1.472 MB / 0.9107 GB, free: 15.11 MB / 0.7481 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.006268/2.299, allocations: 2.21 MB / 0.9128 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007637/2.3, allocations: 355.6 kB / 0.9132 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/2.3, allocations: 192 / 0.9132 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002613/2.3, allocations: 112.1 kB / 0.9133 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/2.301, allocations: 72.84 kB / 0.9133 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/2.302, allocations: 0.7957 MB / 0.9141 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/2.302, allocations: 0.8067 MB / 0.9149 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.567e-05/2.303, allocations: 39.42 kB / 0.9149 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of SimCode: time 3.01e-07/2.303, allocations: 0 / 0.9149 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of Templates: time 0.03935/2.342, allocations: 31.01 MB / 0.9452 GB, free: 11.95 MB / 0.7794 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)