Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.8143/0.8143, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003407, allocations: 14.05 kB / 237.7 MB, free: 1.84 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05258/0.05293, allocations: 31.35 MB / 269.1 MB, free: 7.117 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.Book.SimpleExamples.PressureLoss.TestCheckValve): time 1.627/1.68, allocations: 294.8 MB / 0.5506 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5091/2.189, allocations: 187.5 MB / 0.7337 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002463/2.189, allocations: 8.938 kB / 0.7337 GB, free: 1.793 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/CheckValve.mo:37:3-38:68: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/CheckValve.mo:39:3-40:66: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.0001186/2.189, allocations: 43.72 kB / 0.7337 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002711/2.189, allocations: 116.2 kB / 0.7338 GB, free: 1.793 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.03196/2.221, allocations: 11.33 MB / 0.7449 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004844/2.222, allocations: 405.6 kB / 0.7453 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/2.222, allocations: 213.1 kB / 0.7455 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/2.222, allocations: 166.3 kB / 0.7457 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/2.223, allocations: 176 kB / 0.7458 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/2.223, allocations: 34.28 kB / 0.7459 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03806/2.261, allocations: 19.9 MB / 0.7653 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001323/2.261, allocations: 80.48 kB / 0.7654 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002692/2.261, allocations: 191 kB / 0.7656 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02446/2.286, allocations: 9.763 MB / 0.7751 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/2.286, allocations: 0.875 kB / 0.7751 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.344e-06/2.286, allocations: 0 / 0.7751 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.447e-05/2.286, allocations: 0.6562 kB / 0.7751 GB, free: 13.48 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004817/2.29, allocations: 1.794 MB / 0.7768 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/2.29, allocations: 10.7 kB / 0.7769 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.492e-05/2.291, allocations: 44.5 kB / 0.7769 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/2.291, allocations: 304.5 kB / 0.7772 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.212e-05/2.291, allocations: 54.98 kB / 0.7772 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/2.291, allocations: 39.38 kB / 0.7773 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005517/2.292, allocations: 375.6 kB / 0.7776 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/2.292, allocations: 4.594 kB / 0.7776 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/2.292, allocations: 15.44 kB / 0.7777 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/2.292, allocations: 8.719 kB / 0.7777 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/2.292, allocations: 256.5 kB / 0.7779 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/2.294, allocations: 1.929 MB / 0.7798 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/2.294, allocations: 99.77 kB / 0.7799 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/2.294, allocations: 58.14 kB / 0.7799 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2449/2.539, allocations: 123.2 MB / 0.9003 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/2.539, allocations: 117.8 kB / 0.9004 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 4.048e-06/2.539, allocations: 0 / 0.9004 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.0009638/2.54, allocations: 344.4 kB / 0.9007 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/2.541, allocations: 59.34 kB / 0.9008 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/2.541, allocations: 264.2 kB / 0.901 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/2.541, allocations: 25.7 kB / 0.9011 GB, free: 8.703 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/2.541, allocations: 230 kB / 0.9013 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.272e-05/2.541, allocations: 52.94 kB / 0.9013 GB, free: 8.473 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/2.541, allocations: 75 kB / 0.9014 GB, free: 8.414 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001109/2.541, allocations: 333.9 kB / 0.9017 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/2.541, allocations: 67.42 kB / 0.9018 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/2.542, allocations: 182 kB / 0.902 GB, free: 7.836 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/2.543, allocations: 476.4 kB / 0.9024 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/2.543, allocations: 0 / 0.9024 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006599/2.544, allocations: 315.4 kB / 0.9027 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/2.544, allocations: 9.094 kB / 0.9027 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/2.544, allocations: 4 kB / 0.9027 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006061/2.545, allocations: 103.6 kB / 0.9028 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/2.545, allocations: 51.09 kB / 0.9029 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004055/2.545, allocations: 0.5515 MB / 0.9034 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/2.545, allocations: 39.67 kB / 0.9034 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/2.545, allocations: 21.23 kB / 0.9035 GB, free: 6.359 MB / 0.7325 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: 18 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,checkValve3.fluid,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000204/2.546, allocations: 156.1 kB / 0.9036 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/2.546, allocations: 27.66 kB / 0.9036 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005258/2.546, allocations: 232.5 kB / 0.9039 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/2.546, allocations: 5.078 kB / 0.9039 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/2.546, allocations: 4 kB / 0.9039 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.239e-05/2.546, allocations: 97.77 kB / 0.904 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/2.546, allocations: 3.938 kB / 0.904 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/2.546, allocations: 23.92 kB / 0.904 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/2.547, allocations: 15.92 kB / 0.904 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004997/2.547, allocations: 254.9 kB / 0.9042 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004987/2.548, allocations: 404 kB / 0.9046 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000135/2.548, allocations: 57.17 kB / 0.9047 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001867/2.548, allocations: 185.1 kB / 0.9049 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of Backend: time 5.71e-07/2.548, allocations: 1.203 kB / 0.9049 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0172/2.565, allocations: 3.535 MB / 0.9083 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of SimCode: time 0.001331/2.566, allocations: 1.006 MB / 0.9093 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of Templates: time 0.1022/2.669, allocations: 72.15 MB / 0.9798 GB, free: 8.605 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)