Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8029/0.8029, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003444, allocations: 14.83 kB / 237.7 MB, free: 1.816 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05818/0.05854, allocations: 31.35 MB / 269.1 MB, free: 7.105 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.TestDynamicCheckValve): time 1.632/1.69, allocations: 294.9 MB / 0.5508 GB, free: 12.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.509/2.199, allocations: 187.8 MB / 0.7342 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003511/2.2, allocations: 7.844 kB / 0.7342 GB, free: 1.832 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.0002309/2.2, allocations: 58.25 kB / 0.7343 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003492/2.2, allocations: 149.9 kB / 0.7344 GB, free: 1.832 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.02794/2.228, allocations: 11.51 MB / 0.7457 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006471/2.229, allocations: 490.1 kB / 0.7462 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/2.229, allocations: 240.8 kB / 0.7464 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/2.229, allocations: 206.3 kB / 0.7466 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/2.229, allocations: 219.8 kB / 0.7468 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.938e-05/2.23, allocations: 39.19 kB / 0.7468 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0384/2.268, allocations: 19.9 MB / 0.7663 GB, free: 0.9336 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003195/2.268, allocations: 100.5 kB / 0.7664 GB, free: 0.918 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004506/2.269, allocations: 223.9 kB / 0.7666 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02565/2.294, allocations: 9.865 MB / 0.7762 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/2.295, allocations: 0.5938 kB / 0.7762 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.003e-06/2.295, allocations: 0 / 0.7762 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.14e-05/2.295, allocations: 4.312 kB / 0.7762 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.005389/2.3, allocations: 1.857 MB / 0.778 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/2.3, allocations: 8.688 kB / 0.778 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/2.3, allocations: 53.75 kB / 0.7781 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/2.301, allocations: 346 kB / 0.7784 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.274e-05/2.301, allocations: 60.23 kB / 0.7785 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/2.301, allocations: 38.56 kB / 0.7785 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000574/2.301, allocations: 405.1 kB / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/2.301, allocations: 0 / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/2.301, allocations: 19.97 kB / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/2.301, allocations: 13.59 kB / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004842/2.302, allocations: 282.7 kB / 0.7792 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/2.304, allocations: 2.02 MB / 0.7812 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005379/2.304, allocations: 218 kB / 0.7814 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/2.304, allocations: 85.44 kB / 0.7815 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2376/2.542, allocations: 123.2 MB / 0.9018 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/2.542, allocations: 138.5 kB / 0.9019 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 3.747e-06/2.542, allocations: 0 / 0.9019 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001133/2.543, allocations: 411 kB / 0.9023 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/2.544, allocations: 55.25 kB / 0.9024 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/2.544, allocations: 324.4 kB / 0.9027 GB, free: 7.766 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/2.544, allocations: 29.7 kB / 0.9027 GB, free: 7.73 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/2.544, allocations: 235.6 kB / 0.9029 GB, free: 7.496 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.571e-05/2.544, allocations: 77.69 kB / 0.903 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/2.544, allocations: 73.92 kB / 0.9031 GB, free: 7.344 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001382/2.544, allocations: 338.8 kB / 0.9034 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/2.545, allocations: 83.7 kB / 0.9035 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/2.545, allocations: 184.4 kB / 0.9036 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004128/2.545, allocations: 265.8 kB / 0.9039 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/2.545, allocations: 3.938 kB / 0.9039 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008426/2.546, allocations: 388 kB / 0.9043 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/2.546, allocations: 5.094 kB / 0.9043 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/2.546, allocations: 4.438 kB / 0.9043 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/2.547, allocations: 167 kB / 0.9044 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/2.548, allocations: 58.25 kB / 0.9045 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/2.55, allocations: 2.376 MB / 0.9068 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/2.55, allocations: 51.5 kB / 0.9069 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/2.55, allocations: 21.06 kB / 0.9069 GB, free: 3.223 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.0002179/2.55, allocations: 157 kB / 0.907 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.993e-05/2.55, allocations: 31.62 kB / 0.9071 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008014/2.551, allocations: 314.3 kB / 0.9074 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.467e-06/2.551, allocations: 11.53 kB / 0.9074 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/2.551, allocations: 0 / 0.9074 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/2.551, allocations: 124.6 kB / 0.9075 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/2.552, allocations: 8 kB / 0.9075 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/2.552, allocations: 11.98 kB / 0.9075 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/2.552, allocations: 31.95 kB / 0.9075 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007761/2.553, allocations: 336.3 kB / 0.9079 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006435/2.553, allocations: 480.7 kB / 0.9083 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001681/2.553, allocations: 84 kB / 0.9084 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000253/2.554, allocations: 219.1 kB / 0.9086 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of Backend: time 1.673e-06/2.554, allocations: 4 kB / 0.9086 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01534/2.569, allocations: 3.688 MB / 0.9122 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of SimCode: time 0.001586/2.571, allocations: 1.255 MB / 0.9134 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of Templates: time 0.1017/2.672, allocations: 73.72 MB / 0.9854 GB, free: 3.176 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)