Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.1 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002791, allocations: 19.97 kB / 204.2 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1373, allocations: 31.32 MB / 235.5 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.Examples.SimpleExamples.TestDynamicCheckValve): time 1.522/1.66, allocations: 293.9 MB / 0.5169 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03635/1.696, allocations: 35.06 MB / 0.5512 GB, free: 10.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003452/1.697, allocations: 0 / 0.5512 GB, free: 10.49 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.000509/1.697, allocations: 112.2 kB / 0.5513 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003059/1.697, allocations: 115.2 kB / 0.5514 GB, free: 10.27 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.02232/1.72, allocations: 8.562 MB / 0.5598 GB, free: 1.703 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006732/1.72, allocations: 454.6 kB / 0.5602 GB, free: 1.258 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/1.721, allocations: 151 kB / 0.5603 GB, free: 1.113 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/1.721, allocations: 187.2 kB / 0.5605 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/1.721, allocations: 163.2 kB / 0.5607 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/1.721, allocations: 24 kB / 0.5607 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02627/1.747, allocations: 17.76 MB / 0.578 GB, free: 14.96 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/1.748, allocations: 67.7 kB / 0.5781 GB, free: 14.89 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/1.748, allocations: 171.1 kB / 0.5783 GB, free: 14.73 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01643/1.764, allocations: 8.531 MB / 0.5866 GB, free: 6.176 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/1.764, allocations: 4 kB / 0.5866 GB, free: 6.172 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.633e-06/1.764, allocations: 4 kB / 0.5866 GB, free: 6.168 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/1.764, allocations: 0 / 0.5866 GB, free: 6.168 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.003999/1.768, allocations: 1.532 MB / 0.5881 GB, free: 4.582 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/1.768, allocations: 12.03 kB / 0.5881 GB, free: 4.57 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.586e-05/1.768, allocations: 39.47 kB / 0.5882 GB, free: 4.531 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/1.769, allocations: 278.2 kB / 0.5884 GB, free: 4.219 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/1.769, allocations: 46.27 kB / 0.5885 GB, free: 4.168 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/1.769, allocations: 27.91 kB / 0.5885 GB, free: 4.141 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005074/1.769, allocations: 338.8 kB / 0.5888 GB, free: 3.785 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/1.769, allocations: 15.92 kB / 0.5888 GB, free: 3.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/1.769, allocations: 8 kB / 0.5888 GB, free: 3.762 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/1.769, allocations: 15.94 kB / 0.5889 GB, free: 3.746 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003698/1.77, allocations: 229.8 kB / 0.5891 GB, free: 3.52 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.0188/1.789, allocations: 9.974 MB / 0.5988 GB, free: 8.512 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006384/1.789, allocations: 274.9 kB / 0.5991 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/1.789, allocations: 149.1 kB / 0.5992 GB, free: 8.082 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1542/1.944, allocations: 85.48 MB / 0.6827 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003889/1.944, allocations: 223.9 kB / 0.6829 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.814e-06/1.944, allocations: 0 / 0.6829 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001176/1.945, allocations: 0.5694 MB / 0.6835 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/1.945, allocations: 85.06 kB / 0.6835 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/1.946, allocations: 250.6 kB / 0.6838 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/1.946, allocations: 37.73 kB / 0.6838 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/1.946, allocations: 164.8 kB / 0.684 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.216e-05/1.946, allocations: 153.7 kB / 0.6841 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-05/1.946, allocations: 69.91 kB / 0.6842 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001037/1.946, allocations: 334.8 kB / 0.6845 GB, free: 7.027 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/1.946, allocations: 116.8 kB / 0.6846 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/1.946, allocations: 168 kB / 0.6848 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/1.947, allocations: 287.2 kB / 0.6851 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.947, allocations: 0 / 0.6851 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007881/1.948, allocations: 435.6 kB / 0.6855 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/1.948, allocations: 9.562 kB / 0.6855 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/1.948, allocations: 3.938 kB / 0.6855 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/1.949, allocations: 193.6 kB / 0.6857 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/1.949, allocations: 27.92 kB / 0.6857 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/1.951, allocations: 2.434 MB / 0.6881 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/1.951, allocations: 44.2 kB / 0.6881 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/1.951, allocations: 8 kB / 0.6881 GB, free: 3.113 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.0001428/1.951, allocations: 146.3 kB / 0.6883 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.913e-05/1.951, allocations: 47.45 kB / 0.6883 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007483/1.952, allocations: 0.5678 MB / 0.6889 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004854/1.953, allocations: 358.2 kB / 0.6892 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/1.953, allocations: 0 / 0.6892 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/1.953, allocations: 11.92 kB / 0.6892 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/1.954, allocations: 0.9882 MB / 0.6902 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/1.954, allocations: 0 / 0.6902 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/1.954, allocations: 55.91 kB / 0.6902 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000341/1.955, allocations: 104.8 kB / 0.6903 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/1.955, allocations: 8 kB / 0.6903 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004402/1.955, allocations: 0.6433 MB / 0.691 GB, free: 56 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/1.955, allocations: 0 / 0.691 GB, free: 56 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.152/2.107, allocations: 0.6405 MB / 0.6916 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/2.107, allocations: 136.2 kB / 0.6917 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/2.107, allocations: 10.03 kB / 0.6917 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/2.108, allocations: 25.22 kB / 0.6918 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.585e-05/2.108, allocations: 30.7 kB / 0.6918 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/2.108, allocations: 11.45 kB / 0.6918 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001876/2.108, allocations: 217 kB / 0.692 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.108, allocations: 0 / 0.692 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002847/2.111, allocations: 1.209 MB / 0.6932 GB, free: 226.3 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.004501/2.115, allocations: 1.792 MB / 0.6949 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009851/2.116, allocations: 0.5067 MB / 0.6954 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/2.116, allocations: 0.75 kB / 0.6954 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003725/2.117, allocations: 195.9 kB / 0.6956 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/2.117, allocations: 130.2 kB / 0.6957 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/2.119, allocations: 1.004 MB / 0.6967 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/2.119, allocations: 0.8117 MB / 0.6975 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001403/2.119, allocations: 38.2 kB / 0.6975 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.989e-05/2.119, allocations: 32.44 kB / 0.6976 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/2.119, allocations: 0 / 0.6976 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.04425/2.163, allocations: 44.35 MB / 0.7409 GB, free: 200.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)