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.8129/0.8129, allocations: 150.9 MB / 166.5 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003064, allocations: 13.55 kB / 237 MB, free: 1.809 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06109/0.06141, allocations: 31.34 MB / 268.4 MB, free: 7.125 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.639/1.701, allocations: 295 MB / 0.5502 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5286/2.229, allocations: 187.8 MB / 0.7336 GB, free: 1.773 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003541/2.23, allocations: 10.94 kB / 0.7336 GB, free: 1.773 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.0002728/2.23, allocations: 61.92 kB / 0.7337 GB, free: 1.773 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005077/2.231, allocations: 154.6 kB / 0.7338 GB, free: 1.773 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.03/2.261, allocations: 11.71 MB / 0.7453 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005119/2.261, allocations: 498.9 kB / 0.7458 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002612/2.261, allocations: 239.4 kB / 0.746 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/2.262, allocations: 204.8 kB / 0.7462 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/2.262, allocations: 222.1 kB / 0.7464 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.304e-05/2.262, allocations: 40.91 kB / 0.7464 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03134/2.293, allocations: 19.91 MB / 0.7659 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001645/2.293, allocations: 97.62 kB / 0.766 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002943/2.294, allocations: 223.8 kB / 0.7662 GB, free: 0.8555 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02629/2.32, allocations: 9.884 MB / 0.7758 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/2.32, allocations: 0.8125 kB / 0.7758 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.254e-06/2.32, allocations: 0 / 0.7758 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.128e-05/2.32, allocations: 4.219 kB / 0.7758 GB, free: 13.41 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.006543/2.327, allocations: 1.856 MB / 0.7777 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/2.327, allocations: 9.062 kB / 0.7777 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/2.327, allocations: 57.55 kB / 0.7777 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/2.327, allocations: 336.3 kB / 0.778 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.449e-05/2.327, allocations: 57.23 kB / 0.7781 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.511e-05/2.327, allocations: 42.38 kB / 0.7781 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/2.328, allocations: 403.1 kB / 0.7785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/2.328, allocations: 7.062 kB / 0.7785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.307e-05/2.328, allocations: 18.33 kB / 0.7785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/2.328, allocations: 15.09 kB / 0.7786 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005146/2.329, allocations: 282.9 kB / 0.7788 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/2.331, allocations: 2.009 MB / 0.7808 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005955/2.331, allocations: 224.6 kB / 0.781 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/2.331, allocations: 81.17 kB / 0.7811 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2617/2.593, allocations: 123.2 MB / 0.9014 GB, free: 8.387 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003362/2.593, allocations: 131.6 kB / 0.9015 GB, free: 8.25 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.655e-06/2.593, allocations: 0 / 0.9015 GB, free: 8.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001125/2.595, allocations: 417 kB / 0.9019 GB, free: 7.824 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/2.595, allocations: 55.41 kB / 0.902 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/2.595, allocations: 317 kB / 0.9023 GB, free: 7.438 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/2.595, allocations: 29.7 kB / 0.9023 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/2.595, allocations: 239.6 kB / 0.9026 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/2.595, allocations: 69.91 kB / 0.9026 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/2.596, allocations: 73.92 kB / 0.9027 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000133/2.596, allocations: 347.9 kB / 0.903 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/2.596, allocations: 84.45 kB / 0.9031 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/2.596, allocations: 181.2 kB / 0.9033 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/2.597, allocations: 269.7 kB / 0.9035 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/2.597, allocations: 0 / 0.9035 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00088/2.597, allocations: 394.2 kB / 0.9039 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/2.597, allocations: 5.719 kB / 0.9039 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/2.598, allocations: 4 kB / 0.9039 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/2.599, allocations: 161.7 kB / 0.9041 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/2.599, allocations: 58.25 kB / 0.9041 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/2.601, allocations: 2.384 MB / 0.9065 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/2.602, allocations: 47.56 kB / 0.9065 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-05/2.602, allocations: 16 kB / 0.9065 GB, free: 2.891 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.0002176/2.602, allocations: 154.6 kB / 0.9067 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.759e-05/2.602, allocations: 31.62 kB / 0.9067 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000768/2.603, allocations: 331.1 kB / 0.907 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/2.603, allocations: 4 kB / 0.907 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/2.603, allocations: 0 / 0.907 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/2.603, allocations: 3.984 kB / 0.907 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/2.603, allocations: 379.4 kB / 0.9074 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/2.603, allocations: 0 / 0.9074 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/2.604, allocations: 51.91 kB / 0.9074 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004675/2.604, allocations: 74.38 kB / 0.9075 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/2.604, allocations: 5.688 kB / 0.9075 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004358/2.604, allocations: 0.5671 MB / 0.9081 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/2.604, allocations: 0 / 0.9081 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007802/2.605, allocations: 377.6 kB / 0.9084 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/2.605, allocations: 125.5 kB / 0.9085 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/2.605, allocations: 5.094 kB / 0.9085 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/2.606, allocations: 19.97 kB / 0.9086 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.452e-05/2.606, allocations: 27.91 kB / 0.9086 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/2.606, allocations: 16.05 kB / 0.9086 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002561/2.606, allocations: 227.2 kB / 0.9088 GB, free: 432 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.31e-07/2.606, allocations: 0 / 0.9088 GB, free: 432 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00413/2.61, allocations: 1.471 MB / 0.9103 GB, free: 14.95 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.007673/2.618, allocations: 2.215 MB / 0.9124 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009719/2.619, allocations: 364.7 kB / 0.9128 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/2.619, allocations: 0 / 0.9128 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003221/2.619, allocations: 103.1 kB / 0.9129 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/2.62, allocations: 85.81 kB / 0.913 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/2.621, allocations: 0.7555 MB / 0.9137 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/2.622, allocations: 0.7989 MB / 0.9145 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001882/2.622, allocations: 53.58 kB / 0.9145 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.509e-05/2.622, allocations: 35.44 kB / 0.9146 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of SimCode: time 1.282e-06/2.622, allocations: 0 / 0.9146 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of Templates: time 0.06476/2.687, allocations: 47.4 MB / 0.9608 GB, free: 11.48 MB / 0.795 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)