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.8089/0.8089, allocations: 150.8 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003078, allocations: 13.78 kB / 237.1 MB, free: 1.836 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05421/0.05453, allocations: 31.34 MB / 268.4 MB, free: 7.109 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.615/1.669, allocations: 294.9 MB / 0.5501 GB, free: 12.49 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5014/2.171, allocations: 187.9 MB / 0.7336 GB, free: 2.102 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002839/2.171, allocations: 8.062 kB / 0.7336 GB, free: 2.102 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.0002111/2.171, allocations: 60.89 kB / 0.7336 GB, free: 2.102 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003225/2.172, allocations: 143.7 kB / 0.7338 GB, free: 2.102 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.03045/2.202, allocations: 11.5 MB / 0.745 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005578/2.203, allocations: 495.4 kB / 0.7455 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002749/2.203, allocations: 243.8 kB / 0.7457 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/2.203, allocations: 200.4 kB / 0.7459 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/2.203, allocations: 222.9 kB / 0.7461 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/2.203, allocations: 43.75 kB / 0.7462 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03485/2.238, allocations: 19.9 MB / 0.7656 GB, free: 1.176 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002035/2.239, allocations: 96.5 kB / 0.7657 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003214/2.239, allocations: 226 kB / 0.7659 GB, free: 1.148 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02331/2.262, allocations: 9.861 MB / 0.7755 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/2.262, allocations: 4.922 kB / 0.7755 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/2.262, allocations: 2.812 kB / 0.7755 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.534e-05/2.262, allocations: 1.203 kB / 0.7755 GB, free: 13.64 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.004719/2.267, allocations: 1.855 MB / 0.7773 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/2.267, allocations: 10.78 kB / 0.7774 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/2.267, allocations: 54.62 kB / 0.7774 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/2.268, allocations: 347.1 kB / 0.7777 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.015e-05/2.268, allocations: 57.05 kB / 0.7778 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.175e-05/2.268, allocations: 35.09 kB / 0.7778 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/2.268, allocations: 407.2 kB / 0.7782 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/2.269, allocations: 0 / 0.7782 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/2.269, allocations: 20.94 kB / 0.7782 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/2.269, allocations: 11.56 kB / 0.7782 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004651/2.269, allocations: 284.1 kB / 0.7785 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/2.271, allocations: 2.011 MB / 0.7805 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/2.271, allocations: 219.5 kB / 0.7807 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/2.272, allocations: 90.81 kB / 0.7808 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2433/2.515, allocations: 123.2 MB / 0.9011 GB, free: 8.766 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003398/2.515, allocations: 138.8 kB / 0.9013 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.315e-06/2.515, allocations: 0 / 0.9013 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001059/2.516, allocations: 407.1 kB / 0.9016 GB, free: 8.203 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/2.516, allocations: 55.41 kB / 0.9017 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/2.517, allocations: 320.4 kB / 0.902 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/2.517, allocations: 33.55 kB / 0.902 GB, free: 7.777 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/2.517, allocations: 239.9 kB / 0.9023 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/2.517, allocations: 73.98 kB / 0.9023 GB, free: 7.469 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/2.517, allocations: 73.92 kB / 0.9024 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001108/2.517, allocations: 342.8 kB / 0.9027 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/2.517, allocations: 80.62 kB / 0.9028 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/2.518, allocations: 178.1 kB / 0.903 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/2.518, allocations: 267.5 kB / 0.9032 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/2.518, allocations: 0 / 0.9032 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007975/2.519, allocations: 389.1 kB / 0.9036 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/2.519, allocations: 8.438 kB / 0.9036 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/2.519, allocations: 8 kB / 0.9036 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009742/2.52, allocations: 166.5 kB / 0.9038 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/2.52, allocations: 55.06 kB / 0.9038 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/2.522, allocations: 2.388 MB / 0.9062 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/2.523, allocations: 51.64 kB / 0.9062 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/2.523, allocations: 15.98 kB / 0.9062 GB, free: 3.266 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.0001814/2.523, allocations: 156 kB / 0.9064 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.912e-05/2.523, allocations: 31.62 kB / 0.9064 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007086/2.524, allocations: 322.5 kB / 0.9067 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/2.524, allocations: 0 / 0.9067 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/2.524, allocations: 0 / 0.9067 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/2.524, allocations: 4 kB / 0.9067 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/2.524, allocations: 384.5 kB / 0.9071 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/2.524, allocations: 4 kB / 0.9071 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/2.524, allocations: 39.92 kB / 0.9071 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000425/2.525, allocations: 77.64 kB / 0.9072 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/2.525, allocations: 17.19 kB / 0.9072 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003917/2.525, allocations: 0.5601 MB / 0.9078 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/2.525, allocations: 0 / 0.9078 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007419/2.526, allocations: 383.7 kB / 0.9081 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/2.526, allocations: 124.7 kB / 0.9082 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.379e-05/2.526, allocations: 8 kB / 0.9083 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/2.526, allocations: 15.92 kB / 0.9083 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/2.526, allocations: 38.98 kB / 0.9083 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/2.526, allocations: 4 kB / 0.9083 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002308/2.527, allocations: 231.2 kB / 0.9085 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/2.527, allocations: 5.156 kB / 0.9085 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003814/2.531, allocations: 1.468 MB / 0.91 GB, free: 15.32 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.006062/2.537, allocations: 2.212 MB / 0.9121 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008747/2.537, allocations: 355.7 kB / 0.9125 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/2.537, allocations: 0 / 0.9125 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002814/2.538, allocations: 120.2 kB / 0.9126 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/2.538, allocations: 74.84 kB / 0.9127 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/2.54, allocations: 0.7501 MB / 0.9134 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/2.54, allocations: 0.804 MB / 0.9142 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001617/2.54, allocations: 49.53 kB / 0.9142 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.692e-05/2.54, allocations: 35.42 kB / 0.9143 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of SimCode: time 3.61e-07/2.54, allocations: 0 / 0.9143 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of Templates: time 0.05831/2.599, allocations: 47.41 MB / 0.9606 GB, free: 11.84 MB / 0.795 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)