Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8325/0.8325, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 15.22 kB / 237.1 MB, free: 1.812 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06234/0.06269, allocations: 31.36 MB / 268.5 MB, free: 7.043 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.SimpleExamples.TestDynamicCheckValve): time 1.701/1.764, allocations: 295.1 MB / 0.5503 GB, free: 12.76 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6025/2.366, allocations: 187.9 MB / 0.7338 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/2.367, allocations: 7.844 kB / 0.7338 GB, free: 1.801 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.0002752/2.367, allocations: 58.97 kB / 0.7338 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004317/2.368, allocations: 146.6 kB / 0.734 GB, free: 1.801 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.03523/2.403, allocations: 11.71 MB / 0.7454 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007666/2.404, allocations: 0.4899 MB / 0.7459 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003298/2.404, allocations: 237.8 kB / 0.7461 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/2.404, allocations: 206.4 kB / 0.7463 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/2.404, allocations: 223.1 kB / 0.7465 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/2.405, allocations: 40 kB / 0.7466 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0396/2.444, allocations: 19.91 MB / 0.766 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002605/2.444, allocations: 99 kB / 0.7661 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004044/2.445, allocations: 223.7 kB / 0.7663 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03968/2.485, allocations: 9.881 MB / 0.776 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/2.485, allocations: 0 / 0.776 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.934e-06/2.485, allocations: 1.766 kB / 0.776 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.075e-05/2.485, allocations: 1 kB / 0.776 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.006359/2.491, allocations: 1.859 MB / 0.7778 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/2.491, allocations: 10.44 kB / 0.7778 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/2.491, allocations: 55.19 kB / 0.7778 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/2.492, allocations: 336.6 kB / 0.7782 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.831e-05/2.492, allocations: 58.3 kB / 0.7782 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.476e-05/2.492, allocations: 38.66 kB / 0.7782 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006595/2.492, allocations: 411.5 kB / 0.7786 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/2.493, allocations: 1.5 kB / 0.7786 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/2.493, allocations: 15.44 kB / 0.7787 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/2.493, allocations: 12.47 kB / 0.7787 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005358/2.493, allocations: 287.5 kB / 0.7789 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/2.495, allocations: 2.007 MB / 0.7809 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005854/2.496, allocations: 218.8 kB / 0.7811 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/2.496, allocations: 86.7 kB / 0.7812 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2486/2.744, allocations: 123.2 MB / 0.9015 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003732/2.745, allocations: 136.3 kB / 0.9017 GB, free: 8.242 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 3.447e-06/2.745, allocations: 0 / 0.9017 GB, free: 8.242 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001133/2.746, allocations: 417.8 kB / 0.9021 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/2.746, allocations: 55.41 kB / 0.9021 GB, free: 7.75 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/2.746, allocations: 317.5 kB / 0.9024 GB, free: 7.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/2.746, allocations: 29.7 kB / 0.9024 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/2.747, allocations: 242.7 kB / 0.9027 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.213e-05/2.747, allocations: 69.67 kB / 0.9027 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/2.747, allocations: 73.92 kB / 0.9028 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001203/2.747, allocations: 346.8 kB / 0.9031 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/2.747, allocations: 80.61 kB / 0.9032 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/2.747, allocations: 181.3 kB / 0.9034 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004028/2.748, allocations: 268.7 kB / 0.9037 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/2.748, allocations: 0 / 0.9037 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008779/2.749, allocations: 389.2 kB / 0.904 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/2.749, allocations: 5.406 kB / 0.904 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/2.749, allocations: 9.594 kB / 0.904 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009994/2.75, allocations: 165.5 kB / 0.9042 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/2.75, allocations: 55.16 kB / 0.9042 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/2.752, allocations: 2.379 MB / 0.9066 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/2.753, allocations: 51.56 kB / 0.9066 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/2.753, allocations: 12 kB / 0.9066 GB, free: 2.887 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.0001925/2.753, allocations: 167.5 kB / 0.9068 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.105e-05/2.753, allocations: 33.62 kB / 0.9068 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007156/2.754, allocations: 326.7 kB / 0.9071 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/2.754, allocations: 4 kB / 0.9071 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/2.754, allocations: 0 / 0.9071 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/2.754, allocations: 3.984 kB / 0.9071 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004152/2.754, allocations: 379.8 kB / 0.9075 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/2.754, allocations: 0 / 0.9075 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/2.754, allocations: 51 kB / 0.9076 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004324/2.755, allocations: 80.22 kB / 0.9076 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/2.755, allocations: 4 kB / 0.9076 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003919/2.755, allocations: 0.564 MB / 0.9082 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/2.755, allocations: 3.188 kB / 0.9082 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007829/2.756, allocations: 382.5 kB / 0.9086 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/2.756, allocations: 124.7 kB / 0.9087 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.412e-05/2.756, allocations: 4 kB / 0.9087 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/2.756, allocations: 15.97 kB / 0.9087 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.738e-05/2.757, allocations: 27.91 kB / 0.9087 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/2.757, allocations: 22.11 kB / 0.9087 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002384/2.757, allocations: 228.3 kB / 0.909 GB, free: 416 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/2.757, allocations: 0 / 0.909 GB, free: 416 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004204/2.761, allocations: 1.468 MB / 0.9104 GB, free: 14.94 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.007912/2.769, allocations: 2.215 MB / 0.9126 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008461/2.77, allocations: 360.4 kB / 0.9129 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/2.77, allocations: 0 / 0.9129 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002911/2.77, allocations: 108.2 kB / 0.913 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/2.771, allocations: 67.45 kB / 0.9131 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/2.772, allocations: 0.7708 MB / 0.9138 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/2.772, allocations: 0.7989 MB / 0.9146 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001909/2.773, allocations: 50.89 kB / 0.9146 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.84e-05/2.773, allocations: 31.44 kB / 0.9147 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/2.773, allocations: 0 / 0.9147 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of Templates: time 0.06497/2.838, allocations: 47.41 MB / 0.961 GB, free: 11.45 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)