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.761/0.761, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003091, allocations: 16.61 kB / 237.7 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04705/0.04737, allocations: 31.35 MB / 269.1 MB, free: 7.094 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.47/1.518, allocations: 294.9 MB / 0.5508 GB, free: 12.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4351/1.953, allocations: 187.9 MB / 0.7342 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/1.953, allocations: 9.188 kB / 0.7342 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.0001654/1.953, allocations: 56.94 kB / 0.7343 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002684/1.953, allocations: 151.2 kB / 0.7344 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.02377/1.977, allocations: 11.49 MB / 0.7457 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000471/1.978, allocations: 495.8 kB / 0.7461 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/1.978, allocations: 238.3 kB / 0.7464 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/1.978, allocations: 206.9 kB / 0.7466 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/1.978, allocations: 222.8 kB / 0.7468 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.445e-05/1.978, allocations: 40.75 kB / 0.7468 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02838/2.007, allocations: 19.9 MB / 0.7663 GB, free: 0.8906 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/2.007, allocations: 100.3 kB / 0.7663 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002717/2.007, allocations: 222.4 kB / 0.7666 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0169/2.024, allocations: 9.879 MB / 0.7762 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/2.024, allocations: 0 / 0.7762 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.323e-06/2.024, allocations: 0.875 kB / 0.7762 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.248e-05/2.024, allocations: 0 / 0.7762 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.003973/2.028, allocations: 1.861 MB / 0.778 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/2.028, allocations: 10.78 kB / 0.778 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/2.028, allocations: 58.61 kB / 0.7781 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/2.029, allocations: 334.5 kB / 0.7784 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.724e-05/2.029, allocations: 60.06 kB / 0.7785 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/2.029, allocations: 34.97 kB / 0.7785 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/2.029, allocations: 406.2 kB / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/2.029, allocations: 3.469 kB / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/2.029, allocations: 16.44 kB / 0.7789 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/2.029, allocations: 19.58 kB / 0.7789 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/2.03, allocations: 284 kB / 0.7792 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/2.032, allocations: 2.013 MB / 0.7812 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/2.032, allocations: 220.8 kB / 0.7814 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/2.032, allocations: 81.36 kB / 0.7815 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2281/2.26, allocations: 123.2 MB / 0.9018 GB, free: 8.566 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/2.261, allocations: 139.3 kB / 0.9019 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.124e-06/2.261, allocations: 0.8438 kB / 0.9019 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.0009682/2.262, allocations: 405.6 kB / 0.9023 GB, free: 8 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/2.262, allocations: 55.41 kB / 0.9024 GB, free: 7.934 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/2.262, allocations: 316.4 kB / 0.9027 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/2.262, allocations: 33.7 kB / 0.9027 GB, free: 7.574 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/2.262, allocations: 239.9 kB / 0.9029 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/2.262, allocations: 74.94 kB / 0.903 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.975e-05/2.262, allocations: 73.92 kB / 0.9031 GB, free: 7.188 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001011/2.263, allocations: 338.8 kB / 0.9034 GB, free: 6.848 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/2.263, allocations: 88.45 kB / 0.9035 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/2.263, allocations: 178.1 kB / 0.9037 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003681/2.263, allocations: 272.9 kB / 0.9039 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/2.263, allocations: 0 / 0.9039 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007798/2.264, allocations: 382.1 kB / 0.9043 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/2.264, allocations: 8.031 kB / 0.9043 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/2.264, allocations: 9.094 kB / 0.9043 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009447/2.265, allocations: 172.2 kB / 0.9045 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/2.265, allocations: 51.16 kB / 0.9045 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/2.267, allocations: 2.377 MB / 0.9068 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/2.268, allocations: 55.64 kB / 0.9069 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/2.268, allocations: 18.8 kB / 0.9069 GB, free: 3.062 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.0001581/2.268, allocations: 157.2 kB / 0.907 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.663e-05/2.268, allocations: 31.62 kB / 0.9071 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006601/2.269, allocations: 316.6 kB / 0.9074 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/2.269, allocations: 4 kB / 0.9074 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/2.269, allocations: 5.094 kB / 0.9074 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/2.269, allocations: 0 / 0.9074 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003628/2.269, allocations: 386.9 kB / 0.9078 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/2.269, allocations: 5.75 kB / 0.9078 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/2.269, allocations: 43.11 kB / 0.9078 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004068/2.27, allocations: 72.78 kB / 0.9079 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/2.27, allocations: 8 kB / 0.9079 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000365/2.27, allocations: 0.5652 MB / 0.9084 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/2.27, allocations: 0 / 0.9084 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007016/2.271, allocations: 383.6 kB / 0.9088 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/2.271, allocations: 128.7 kB / 0.9089 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/2.271, allocations: 4 kB / 0.9089 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/2.271, allocations: 15.98 kB / 0.9089 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/2.271, allocations: 31.89 kB / 0.909 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/2.271, allocations: 8 kB / 0.909 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000216/2.271, allocations: 231.2 kB / 0.9092 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of sort global known variables: time 9.32e-07/2.271, allocations: 4.062 kB / 0.9092 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003054/2.274, allocations: 1.465 MB / 0.9106 GB, free: 15.13 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.007236/2.282, allocations: 2.218 MB / 0.9128 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006792/2.282, allocations: 353.7 kB / 0.9131 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/2.282, allocations: 192 / 0.9131 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002544/2.283, allocations: 111 kB / 0.9132 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/2.283, allocations: 78.7 kB / 0.9133 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/2.284, allocations: 0.7907 MB / 0.9141 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/2.285, allocations: 0.8067 MB / 0.9149 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-05/2.285, allocations: 36.62 kB / 0.9149 GB, free: 11 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/2.285, allocations: 0 / 0.9149 GB, free: 11 MB / 0.7481 GB Notification: Performance of Templates: time 0.0366/2.321, allocations: 30.96 MB / 0.9451 GB, free: 12.03 MB / 0.7794 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)