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.8169/0.8169, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.0003389, allocations: 20.34 kB / 237.8 MB, free: 1.809 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05213/0.05249, allocations: 31.34 MB / 269.1 MB, free: 7.074 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.617/1.669, allocations: 295 MB / 0.5509 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5609/2.23, allocations: 187.8 MB / 0.7344 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/2.231, allocations: 13.12 kB / 0.7344 GB, free: 1.781 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.0002373/2.231, allocations: 54.75 kB / 0.7344 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003728/2.231, allocations: 151.3 kB / 0.7346 GB, free: 1.781 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.02995/2.261, allocations: 11.51 MB / 0.7458 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006392/2.262, allocations: 490.1 kB / 0.7463 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/2.262, allocations: 244 kB / 0.7465 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/2.262, allocations: 206.7 kB / 0.7467 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/2.263, allocations: 222.3 kB / 0.7469 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/2.263, allocations: 40.5 kB / 0.7469 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04053/2.303, allocations: 19.9 MB / 0.7664 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002775/2.304, allocations: 98.94 kB / 0.7665 GB, free: 0.8633 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003969/2.304, allocations: 228.3 kB / 0.7667 GB, free: 0.8477 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03041/2.334, allocations: 9.876 MB / 0.7763 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/2.335, allocations: 3 kB / 0.7763 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.563e-06/2.335, allocations: 0 / 0.7763 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.138e-06/2.335, allocations: 0 / 0.7763 GB, free: 13.42 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.006/2.341, allocations: 1.863 MB / 0.7782 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/2.341, allocations: 6.844 kB / 0.7782 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/2.341, allocations: 55.94 kB / 0.7782 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004597/2.341, allocations: 347.3 kB / 0.7786 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.502e-05/2.341, allocations: 56.33 kB / 0.7786 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/2.341, allocations: 38.97 kB / 0.7786 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/2.342, allocations: 404.6 kB / 0.779 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/2.342, allocations: 3.094 kB / 0.779 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/2.342, allocations: 17.97 kB / 0.779 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/2.342, allocations: 14 kB / 0.7791 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/2.342, allocations: 279.5 kB / 0.7793 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/2.344, allocations: 2.022 MB / 0.7813 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005301/2.345, allocations: 219.1 kB / 0.7815 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/2.345, allocations: 86.97 kB / 0.7816 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2349/2.58, allocations: 123.2 MB / 0.9019 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003439/2.58, allocations: 139 kB / 0.9021 GB, free: 8.535 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.745e-06/2.58, allocations: 0 / 0.9021 GB, free: 8.535 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001111/2.581, allocations: 411.3 kB / 0.9025 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/2.581, allocations: 51.41 kB / 0.9025 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003948/2.582, allocations: 324.4 kB / 0.9028 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/2.582, allocations: 29.7 kB / 0.9028 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/2.582, allocations: 235.6 kB / 0.9031 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.298e-05/2.582, allocations: 77.77 kB / 0.9031 GB, free: 7.383 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/2.582, allocations: 69.92 kB / 0.9032 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001237/2.582, allocations: 342.8 kB / 0.9035 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/2.583, allocations: 84.45 kB / 0.9036 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/2.583, allocations: 185.2 kB / 0.9038 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/2.583, allocations: 263.6 kB / 0.904 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/2.583, allocations: 3.938 kB / 0.904 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008048/2.584, allocations: 384.1 kB / 0.9044 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/2.584, allocations: 9.094 kB / 0.9044 GB, free: 6 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/2.584, allocations: 4.438 kB / 0.9044 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009667/2.585, allocations: 168.8 kB / 0.9046 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/2.585, allocations: 58.16 kB / 0.9046 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/2.587, allocations: 2.376 MB / 0.907 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/2.588, allocations: 55.5 kB / 0.907 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/2.588, allocations: 16.12 kB / 0.907 GB, free: 3.18 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.0001763/2.588, allocations: 160.9 kB / 0.9072 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/2.588, allocations: 31.62 kB / 0.9072 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007121/2.589, allocations: 317.4 kB / 0.9075 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/2.589, allocations: 5.188 kB / 0.9075 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/2.589, allocations: 0 / 0.9075 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/2.589, allocations: 126.3 kB / 0.9076 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/2.589, allocations: 8 kB / 0.9076 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/2.589, allocations: 11.98 kB / 0.9077 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.223e-05/2.589, allocations: 31.95 kB / 0.9077 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007218/2.59, allocations: 336.4 kB / 0.908 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005609/2.59, allocations: 480.6 kB / 0.9085 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001518/2.591, allocations: 84 kB / 0.9085 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002073/2.591, allocations: 219.1 kB / 0.9088 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of Backend: time 1.452e-06/2.591, allocations: 0 / 0.9088 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01259/2.603, allocations: 3.693 MB / 0.9124 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of SimCode: time 0.001522/2.605, allocations: 1.262 MB / 0.9136 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of Templates: time 0.08708/2.692, allocations: 73.71 MB / 0.9856 GB, free: 3.125 MB / 0.8106 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)