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.7763/0.7763, allocations: 150.9 MB / 166.7 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003029/0.000303, allocations: 15.97 kB / 204.8 MB, free: 9.98 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1481, allocations: 31.32 MB / 236.1 MB, free: 5.453 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.553/1.701, allocations: 293.8 MB / 0.5176 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1896/1.89, allocations: 185.9 MB / 0.6991 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002701/1.891, allocations: 7.938 kB / 0.6991 GB, free: 3.188 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.0002209/1.891, allocations: 44.81 kB / 0.6991 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003305/1.891, allocations: 131.1 kB / 0.6992 GB, free: 3.016 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.3208/2.212, allocations: 10.13 MB / 0.7091 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007434/2.213, allocations: 489.3 kB / 0.7096 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/2.213, allocations: 248.9 kB / 0.7098 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/2.213, allocations: 198.2 kB / 0.71 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/2.213, allocations: 224.7 kB / 0.7102 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.057e-05/2.214, allocations: 38.69 kB / 0.7103 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03476/2.248, allocations: 19.83 MB / 0.7296 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000225/2.249, allocations: 98.69 kB / 0.7297 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003609/2.249, allocations: 225.4 kB / 0.7299 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01335/2.262, allocations: 6.813 MB / 0.7366 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/2.262, allocations: 0 / 0.7366 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.475e-06/2.262, allocations: 4.5 kB / 0.7366 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.041e-05/2.262, allocations: 0 / 0.7366 GB, free: 3.438 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.006364/2.269, allocations: 1.855 MB / 0.7384 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/2.269, allocations: 12.09 kB / 0.7384 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/2.269, allocations: 53.5 kB / 0.7385 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/2.269, allocations: 331.4 kB / 0.7388 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.303e-05/2.269, allocations: 56.61 kB / 0.7388 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.739e-05/2.27, allocations: 45.7 kB / 0.7389 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/2.27, allocations: 403.4 kB / 0.7393 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/2.27, allocations: 4.281 kB / 0.7393 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/2.27, allocations: 17.53 kB / 0.7393 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/2.27, allocations: 14.16 kB / 0.7393 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/2.271, allocations: 278.7 kB / 0.7396 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/2.272, allocations: 2.019 MB / 0.7415 GB, free: 16.44 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/2.273, allocations: 224.2 kB / 0.7418 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/2.273, allocations: 86.41 kB / 0.7418 GB, free: 16.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2257/2.499, allocations: 122.5 MB / 0.8615 GB, free: 4.609 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/2.499, allocations: 144.8 kB / 0.8616 GB, free: 4.488 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=21): time 4.168e-06/2.499, allocations: 0 / 0.8616 GB, free: 4.488 MB / 0.7012 GB Notification: Performance of matching and sorting (n=21): time 0.001246/2.501, allocations: 405.3 kB / 0.862 GB, free: 4.133 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/2.501, allocations: 55.41 kB / 0.8621 GB, free: 4.066 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004553/2.501, allocations: 311.5 kB / 0.8624 GB, free: 3.812 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/2.501, allocations: 33.14 kB / 0.8624 GB, free: 3.777 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000191/2.501, allocations: 237 kB / 0.8626 GB, free: 3.586 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 8.639e-05/2.501, allocations: 76.78 kB / 0.8627 GB, free: 3.523 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/2.502, allocations: 78.09 kB / 0.8628 GB, free: 3.465 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001544/2.502, allocations: 340.7 kB / 0.8631 GB, free: 3.137 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/2.502, allocations: 77.3 kB / 0.8632 GB, free: 3.086 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/2.502, allocations: 187.1 kB / 0.8634 GB, free: 2.898 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/2.503, allocations: 265.1 kB / 0.8636 GB, free: 2.668 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/2.503, allocations: 0 / 0.8636 GB, free: 2.668 MB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009013/2.504, allocations: 393.8 kB / 0.864 GB, free: 2.379 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/2.504, allocations: 4 kB / 0.864 GB, free: 2.375 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/2.504, allocations: 4 kB / 0.864 GB, free: 2.371 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/2.505, allocations: 165.7 kB / 0.8642 GB, free: 2.223 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/2.505, allocations: 57.28 kB / 0.8642 GB, free: 2.176 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002633/2.508, allocations: 2.387 MB / 0.8665 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/2.508, allocations: 43.11 kB / 0.8666 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/2.508, allocations: 16.83 kB / 0.8666 GB, free: 15.75 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.0001969/2.508, allocations: 163.4 kB / 0.8667 GB, free: 15.61 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/2.508, allocations: 31.62 kB / 0.8668 GB, free: 15.58 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007368/2.509, allocations: 322.1 kB / 0.8671 GB, free: 15.33 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/2.509, allocations: 8 kB / 0.8671 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/2.509, allocations: 0 / 0.8671 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/2.509, allocations: 0 / 0.8671 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004297/2.509, allocations: 389.2 kB / 0.8675 GB, free: 14.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/2.51, allocations: 5.078 kB / 0.8675 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/2.51, allocations: 42.89 kB / 0.8675 GB, free: 14.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004503/2.51, allocations: 79.86 kB / 0.8676 GB, free: 14.85 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/2.51, allocations: 3.375 kB / 0.8676 GB, free: 14.85 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004286/2.511, allocations: 0.5633 MB / 0.8681 GB, free: 14.29 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/2.511, allocations: 0 / 0.8681 GB, free: 14.29 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007502/2.511, allocations: 389.5 kB / 0.8685 GB, free: 13.98 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/2.512, allocations: 127.5 kB / 0.8686 GB, free: 13.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.721e-05/2.512, allocations: 3.625 kB / 0.8686 GB, free: 13.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/2.512, allocations: 20.39 kB / 0.8687 GB, free: 13.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/2.512, allocations: 23.59 kB / 0.8687 GB, free: 13.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/2.512, allocations: 15.42 kB / 0.8687 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002225/2.512, allocations: 229.8 kB / 0.8689 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/2.512, allocations: 0 / 0.8689 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004593/2.517, allocations: 1.468 MB / 0.8703 GB, free: 12.25 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.008975/2.526, allocations: 2.286 MB / 0.8726 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009855/2.527, allocations: 359.6 kB / 0.8729 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/2.527, allocations: 0 / 0.8729 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003279/2.527, allocations: 116.4 kB / 0.873 GB, free: 9.934 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/2.528, allocations: 78 kB / 0.8731 GB, free: 9.879 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/2.529, allocations: 0.944 MB / 0.874 GB, free: 8.957 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/2.53, allocations: 0.7979 MB / 0.8748 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/2.53, allocations: 38.8 kB / 0.8748 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of SimCode: time 6.71e-07/2.53, allocations: 4 kB / 0.8748 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of Templates: time 0.04337/2.573, allocations: 30.97 MB / 0.9051 GB, free: 9.258 MB / 0.7481 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)