Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7743/0.7743, allocations: 150.9 MB / 166.7 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000297/0.000297, allocations: 15.98 kB / 204.8 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1512, allocations: 31.33 MB / 236.1 MB, free: 5.465 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.TestCheckValve): time 1.564/1.715, allocations: 293.6 MB / 0.5173 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03467/1.75, allocations: 34.69 MB / 0.5512 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002986/1.75, allocations: 4 kB / 0.5512 GB, free: 11.11 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/CheckValve.mo:38:3-39:49: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/CheckValve.mo:40:3-41:47: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.0003983/1.751, allocations: 92.88 kB / 0.5513 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/1.751, allocations: 95.3 kB / 0.5514 GB, free: 10.93 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.02226/1.773, allocations: 8.403 MB / 0.5596 GB, free: 2.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004708/1.774, allocations: 366.4 kB / 0.5599 GB, free: 2.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/1.774, allocations: 136 kB / 0.5601 GB, free: 2.035 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/1.774, allocations: 155.4 kB / 0.5602 GB, free: 1.883 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/1.774, allocations: 111.4 kB / 0.5603 GB, free: 1.773 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.775e-05/1.774, allocations: 20 kB / 0.5603 GB, free: 1.754 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02469/1.799, allocations: 17.76 MB / 0.5777 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/1.799, allocations: 51.78 kB / 0.5777 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/1.799, allocations: 151.2 kB / 0.5779 GB, free: 15.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008778/1.808, allocations: 5.719 MB / 0.5834 GB, free: 10.04 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/1.808, allocations: 0 / 0.5834 GB, free: 10.04 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.404e-06/1.808, allocations: 0 / 0.5834 GB, free: 10.04 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/1.808, allocations: 0 / 0.5834 GB, free: 10.04 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.003651/1.812, allocations: 1.474 MB / 0.5849 GB, free: 8.516 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/1.812, allocations: 8.031 kB / 0.5849 GB, free: 8.508 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/1.812, allocations: 35.56 kB / 0.5849 GB, free: 8.473 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/1.812, allocations: 238.6 kB / 0.5852 GB, free: 8.203 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/1.812, allocations: 42.14 kB / 0.5852 GB, free: 8.156 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/1.812, allocations: 20 kB / 0.5852 GB, free: 8.137 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004613/1.813, allocations: 318.7 kB / 0.5855 GB, free: 7.797 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/1.813, allocations: 4 kB / 0.5855 GB, free: 7.793 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/1.813, allocations: 8 kB / 0.5855 GB, free: 7.785 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/1.813, allocations: 19.92 kB / 0.5856 GB, free: 7.766 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/1.813, allocations: 192.4 kB / 0.5857 GB, free: 7.574 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.01745/1.831, allocations: 9.896 MB / 0.5954 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/1.831, allocations: 162.8 kB / 0.5956 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/1.831, allocations: 117.1 kB / 0.5957 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1463/1.977, allocations: 85.48 MB / 0.6791 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/1.978, allocations: 198 kB / 0.6793 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 3.446e-06/1.978, allocations: 5.719 kB / 0.6793 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.0009778/1.979, allocations: 0.4952 MB / 0.6798 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/1.979, allocations: 81.11 kB / 0.6799 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/1.979, allocations: 214.9 kB / 0.6801 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/1.979, allocations: 25.7 kB / 0.6801 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.667e-05/1.979, allocations: 148.6 kB / 0.6803 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.961e-05/1.979, allocations: 134 kB / 0.6804 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.241e-05/1.979, allocations: 53.69 kB / 0.6804 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.947e-05/1.979, allocations: 338.8 kB / 0.6808 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/1.98, allocations: 92.39 kB / 0.6809 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/1.98, allocations: 165.4 kB / 0.681 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/1.981, allocations: 0.5341 MB / 0.6815 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.981, allocations: 3.938 kB / 0.6815 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005787/1.982, allocations: 358.2 kB / 0.6819 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.982, allocations: 8.031 kB / 0.6819 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/1.982, allocations: 0 / 0.6819 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005645/1.982, allocations: 128.6 kB / 0.682 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.515e-05/1.982, allocations: 19.98 kB / 0.682 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004036/1.983, allocations: 0.6108 MB / 0.6826 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/1.983, allocations: 39.58 kB / 0.6827 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/1.983, allocations: 8 kB / 0.6827 GB, free: 9.453 MB / 0.5762 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001608/1.983, allocations: 151.5 kB / 0.6828 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/1.983, allocations: 24.92 kB / 0.6828 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006461/1.984, allocations: 0.5013 MB / 0.6833 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004315/1.984, allocations: 330.3 kB / 0.6836 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/1.984, allocations: 0 / 0.6836 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.984, allocations: 0 / 0.6836 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/1.985, allocations: 0.8707 MB / 0.6845 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/1.985, allocations: 0 / 0.6845 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.957e-05/1.985, allocations: 28.27 kB / 0.6845 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005344/1.986, allocations: 140.7 kB / 0.6847 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/1.986, allocations: 4 kB / 0.6847 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00035/1.986, allocations: 0.6225 MB / 0.6853 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/1.986, allocations: 0 / 0.6853 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005516/1.987, allocations: 447.9 kB / 0.6857 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.659e-05/1.987, allocations: 120.6 kB / 0.6858 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/1.987, allocations: 7.938 kB / 0.6858 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/1.987, allocations: 15.98 kB / 0.6858 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/1.987, allocations: 19.92 kB / 0.6859 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/1.987, allocations: 15.92 kB / 0.6859 GB, free: 6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001531/1.987, allocations: 192.5 kB / 0.686 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.987, allocations: 0 / 0.686 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002681/1.99, allocations: 1.191 MB / 0.6872 GB, free: 4.617 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004101/1.994, allocations: 1.786 MB / 0.689 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006977/1.995, allocations: 334 kB / 0.6893 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.995, allocations: 0 / 0.6893 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003116/1.995, allocations: 159.8 kB / 0.6894 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/1.996, allocations: 117.6 kB / 0.6895 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009273/1.997, allocations: 0.7396 MB / 0.6903 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/1.997, allocations: 0.7758 MB / 0.691 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.63e-05/1.997, allocations: 27.44 kB / 0.691 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of SimCode: time 1.633e-06/1.997, allocations: 0 / 0.691 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of Templates: time 0.2003/2.198, allocations: 25.15 MB / 0.7156 GB, free: 219.1 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)