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.8731/0.8731, allocations: 150.9 MB / 166.5 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003409, allocations: 15.78 kB / 237.1 MB, free: 1.707 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06341/0.06376, allocations: 31.35 MB / 268.4 MB, free: 7.055 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.723/1.786, allocations: 295 MB / 0.5502 GB, free: 12.76 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6249/2.411, allocations: 187.8 MB / 0.7337 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003949/2.412, allocations: 10.41 kB / 0.7337 GB, free: 1.766 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.0002534/2.412, allocations: 57.48 kB / 0.7337 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004254/2.412, allocations: 150.4 kB / 0.7339 GB, free: 1.766 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.0362/2.449, allocations: 11.5 MB / 0.7451 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007699/2.449, allocations: 493.3 kB / 0.7456 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003293/2.45, allocations: 237.5 kB / 0.7458 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/2.45, allocations: 204.1 kB / 0.746 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/2.45, allocations: 224.5 kB / 0.7462 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/2.45, allocations: 40 kB / 0.7463 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04088/2.491, allocations: 19.9 MB / 0.7657 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000225/2.492, allocations: 99.36 kB / 0.7658 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003862/2.492, allocations: 225.5 kB / 0.766 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03141/2.523, allocations: 9.887 MB / 0.7757 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/2.523, allocations: 0 / 0.7757 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.174e-06/2.523, allocations: 3.094 kB / 0.7757 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.042e-05/2.523, allocations: 4.125 kB / 0.7757 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.006272/2.53, allocations: 1.851 MB / 0.7775 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/2.53, allocations: 9.25 kB / 0.7775 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/2.53, allocations: 57.5 kB / 0.7775 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/2.53, allocations: 343.8 kB / 0.7779 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.109e-05/2.53, allocations: 60.95 kB / 0.7779 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/2.531, allocations: 34.41 kB / 0.778 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006068/2.531, allocations: 406.4 kB / 0.7784 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/2.531, allocations: 6 kB / 0.7784 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.856e-05/2.531, allocations: 16.28 kB / 0.7784 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/2.531, allocations: 16.03 kB / 0.7784 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004966/2.532, allocations: 281.9 kB / 0.7787 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/2.534, allocations: 2.017 MB / 0.7806 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005893/2.534, allocations: 221.7 kB / 0.7808 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/2.534, allocations: 83.05 kB / 0.7809 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2512/2.785, allocations: 123.2 MB / 0.9013 GB, free: 8.57 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003636/2.786, allocations: 139.2 kB / 0.9014 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.204e-06/2.786, allocations: 0 / 0.9014 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001093/2.787, allocations: 412.4 kB / 0.9018 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/2.787, allocations: 51.41 kB / 0.9018 GB, free: 7.941 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/2.787, allocations: 320.4 kB / 0.9021 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/2.787, allocations: 29.7 kB / 0.9022 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/2.788, allocations: 232.9 kB / 0.9024 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.744e-05/2.788, allocations: 73.38 kB / 0.9025 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/2.788, allocations: 77.91 kB / 0.9025 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001331/2.788, allocations: 338.8 kB / 0.9029 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/2.788, allocations: 88.61 kB / 0.9029 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/2.788, allocations: 178.2 kB / 0.9031 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003991/2.789, allocations: 271.3 kB / 0.9034 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/2.789, allocations: 0 / 0.9034 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008146/2.79, allocations: 388.5 kB / 0.9037 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/2.79, allocations: 10.5 kB / 0.9038 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/2.79, allocations: 8 kB / 0.9038 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/2.791, allocations: 170 kB / 0.9039 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/2.791, allocations: 58.25 kB / 0.904 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/2.793, allocations: 2.373 MB / 0.9063 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/2.794, allocations: 55.64 kB / 0.9063 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/2.794, allocations: 13.09 kB / 0.9064 GB, free: 3.074 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.0001939/2.794, allocations: 164.5 kB / 0.9065 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.007e-05/2.794, allocations: 31.62 kB / 0.9065 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007298/2.795, allocations: 316.7 kB / 0.9068 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/2.795, allocations: 3.984 kB / 0.9069 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/2.795, allocations: 4 kB / 0.9069 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/2.795, allocations: 4 kB / 0.9069 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/2.795, allocations: 384 kB / 0.9072 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/2.795, allocations: 0 / 0.9072 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/2.795, allocations: 52.56 kB / 0.9073 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004051/2.796, allocations: 70.8 kB / 0.9073 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/2.796, allocations: 12 kB / 0.9074 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004318/2.796, allocations: 0.5632 MB / 0.9079 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/2.796, allocations: 0 / 0.9079 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007302/2.797, allocations: 380.1 kB / 0.9083 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/2.797, allocations: 124.7 kB / 0.9084 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/2.797, allocations: 7.984 kB / 0.9084 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/2.797, allocations: 15.98 kB / 0.9084 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.833e-05/2.797, allocations: 28.56 kB / 0.9084 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/2.797, allocations: 11.98 kB / 0.9084 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002384/2.798, allocations: 227.2 kB / 0.9087 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/2.798, allocations: 4.062 kB / 0.9087 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004387/2.802, allocations: 1.468 MB / 0.9101 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.006442/2.809, allocations: 2.214 MB / 0.9123 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008441/2.809, allocations: 357.7 kB / 0.9126 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/2.809, allocations: 0 / 0.9126 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002672/2.81, allocations: 110.4 kB / 0.9127 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.000489/2.81, allocations: 82.5 kB / 0.9128 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/2.812, allocations: 0.7565 MB / 0.9135 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/2.812, allocations: 0.8067 MB / 0.9143 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001679/2.812, allocations: 54.88 kB / 0.9144 GB, free: 11.03 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.294e-05/2.812, allocations: 28.64 kB / 0.9144 GB, free: 11 MB / 0.7481 GB Notification: Performance of SimCode: time 6.91e-07/2.812, allocations: 0 / 0.9144 GB, free: 11 MB / 0.7481 GB Notification: Performance of Templates: time 0.05741/2.87, allocations: 47.41 MB / 0.9607 GB, free: 11.65 MB / 0.795 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)