Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.7897/0.7897, allocations: 150.9 MB / 166.7 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003256, allocations: 7.984 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1616, allocations: 31.34 MB / 236.1 MB, free: 5.422 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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.585/1.747, allocations: 293.7 MB / 0.5175 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03913/1.786, allocations: 35.06 MB / 0.5517 GB, free: 10.55 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/1.786, allocations: 0 / 0.5517 GB, free: 10.55 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004614/1.787, allocations: 108.5 kB / 0.5518 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003118/1.787, allocations: 123.1 kB / 0.5519 GB, free: 10.33 MB / 446.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02695/1.814, allocations: 8.554 MB / 0.5603 GB, free: 1.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007001/1.815, allocations: 446.6 kB / 0.5607 GB, free: 1.332 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/1.815, allocations: 155.8 kB / 0.5609 GB, free: 1.184 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/1.815, allocations: 187.2 kB / 0.561 GB, free: 1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002499/1.815, allocations: 167.2 kB / 0.5612 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/1.815, allocations: 24 kB / 0.5612 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02876/1.844, allocations: 17.77 MB / 0.5786 GB, free: 15.02 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/1.844, allocations: 67.7 kB / 0.5786 GB, free: 14.96 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/1.845, allocations: 175.1 kB / 0.5788 GB, free: 14.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/1.855, allocations: 5.758 MB / 0.5844 GB, free: 9.012 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.607e-06/1.855, allocations: 0 / 0.5844 GB, free: 9.012 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.055e-06/1.855, allocations: 7.938 kB / 0.5844 GB, free: 9.004 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/1.855, allocations: 0 / 0.5844 GB, free: 9.004 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004469/1.86, allocations: 1.54 MB / 0.5859 GB, free: 7.41 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/1.86, allocations: 11.97 kB / 0.5859 GB, free: 7.398 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.304e-05/1.86, allocations: 47.41 kB / 0.586 GB, free: 7.352 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/1.86, allocations: 266.3 kB / 0.5862 GB, free: 7.051 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.253e-05/1.86, allocations: 42.27 kB / 0.5863 GB, free: 7.004 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/1.86, allocations: 27.91 kB / 0.5863 GB, free: 6.977 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/1.861, allocations: 354.7 kB / 0.5866 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/1.861, allocations: 0 / 0.5866 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/1.861, allocations: 12 kB / 0.5867 GB, free: 6.594 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/1.861, allocations: 19.92 kB / 0.5867 GB, free: 6.574 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/1.861, allocations: 226.7 kB / 0.5869 GB, free: 6.352 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01853/1.88, allocations: 9.99 MB / 0.5966 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007004/1.88, allocations: 270.9 kB / 0.5969 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/1.881, allocations: 145.2 kB / 0.597 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.16/2.041, allocations: 85.47 MB / 0.6805 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004547/2.041, allocations: 219.9 kB / 0.6807 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 3.426e-06/2.041, allocations: 0 / 0.6807 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.00128/2.042, allocations: 0.5812 MB / 0.6813 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/2.043, allocations: 85.06 kB / 0.6814 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/2.043, allocations: 250.6 kB / 0.6816 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/2.043, allocations: 29.7 kB / 0.6816 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/2.043, allocations: 176.8 kB / 0.6818 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/2.043, allocations: 149.7 kB / 0.6819 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/2.043, allocations: 61.92 kB / 0.682 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001267/2.043, allocations: 351.1 kB / 0.6823 GB, free: 9.84 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/2.044, allocations: 112.7 kB / 0.6825 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/2.044, allocations: 164.1 kB / 0.6826 GB, free: 9.555 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003991/2.044, allocations: 283.1 kB / 0.6829 GB, free: 9.262 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/2.044, allocations: 4 kB / 0.6829 GB, free: 9.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008413/2.045, allocations: 434.6 kB / 0.6833 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/2.045, allocations: 9.531 kB / 0.6833 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/2.045, allocations: 4 kB / 0.6833 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/2.046, allocations: 189.5 kB / 0.6835 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/2.046, allocations: 27.92 kB / 0.6835 GB, free: 8.586 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/2.049, allocations: 2.427 MB / 0.6859 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/2.049, allocations: 43.64 kB / 0.6859 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/2.049, allocations: 15.98 kB / 0.6859 GB, free: 5.938 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001897/2.049, allocations: 150.7 kB / 0.6861 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.227e-05/2.049, allocations: 33.36 kB / 0.6861 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008/2.05, allocations: 0.5678 MB / 0.6867 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004903/2.051, allocations: 362.2 kB / 0.687 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/2.051, allocations: 4 kB / 0.687 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/2.051, allocations: 7.922 kB / 0.687 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/2.052, allocations: 0.9755 MB / 0.688 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/2.052, allocations: 0 / 0.688 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/2.052, allocations: 59.97 kB / 0.688 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003772/2.053, allocations: 108.8 kB / 0.6881 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/2.053, allocations: 4 kB / 0.6881 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005013/2.053, allocations: 0.64 MB / 0.6888 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/2.053, allocations: 0 / 0.6888 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009713/2.054, allocations: 0.6638 MB / 0.6894 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/2.054, allocations: 132.5 kB / 0.6895 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/2.054, allocations: 11.94 kB / 0.6896 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/2.055, allocations: 16.05 kB / 0.6896 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/2.055, allocations: 35.95 kB / 0.6896 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/2.055, allocations: 11.98 kB / 0.6896 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002227/2.055, allocations: 218 kB / 0.6898 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/2.055, allocations: 0 / 0.6898 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003491/2.059, allocations: 1.21 MB / 0.691 GB, free: 0.5664 MB / 0.5762 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.1699/2.228, allocations: 1.787 MB / 0.6928 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001236/2.23, allocations: 0.4923 MB / 0.6932 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/2.23, allocations: 1.688 kB / 0.6932 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004159/2.23, allocations: 201.5 kB / 0.6934 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008/2.231, allocations: 134.6 kB / 0.6936 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/2.233, allocations: 1.037 MB / 0.6946 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/2.233, allocations: 0.8117 MB / 0.6954 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.729e-05/2.233, allocations: 31.09 kB / 0.6954 GB, free: 225 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/2.233, allocations: 0 / 0.6954 GB, free: 225 MB / 0.5762 GB Notification: Performance of Templates: time 0.03625/2.269, allocations: 26.89 MB / 0.7217 GB, free: 217.5 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)