Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.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.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7829/0.7829, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1308, allocations: 31.33 MB / 235.4 MB, free: 5.465 MB / 190.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.Examples.SimpleExamples.TestDynamicReliefValve): time 1.521/1.652, allocations: 294.6 MB / 0.5176 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4253/2.078, allocations: 188.3 MB / 0.7015 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/2.078, allocations: 5.469 kB / 0.7015 GB, free: 3.617 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicReliefValve.mo:73:3-75:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicReliefValve.mo:76:3-78:33:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:55:3-57:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:30:3-32:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:33:3-35:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.00074/2.079, allocations: 359.2 kB / 0.7018 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008996/2.08, allocations: 0.5018 MB / 0.7023 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0211/2.101, allocations: 8.835 MB / 0.7109 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001261/2.102, allocations: 1.15 MB / 0.7121 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004206/2.102, allocations: 446.2 kB / 0.7125 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004606/2.103, allocations: 469.1 kB / 0.7129 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/2.103, allocations: 0.5984 MB / 0.7135 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.24e-05/2.104, allocations: 44.81 kB / 0.7136 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0298/2.133, allocations: 20.29 MB / 0.7334 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004026/2.134, allocations: 291 kB / 0.7336 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006629/2.134, allocations: 0.5141 MB / 0.7341 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02015/2.155, allocations: 10.82 MB / 0.7447 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.916e-06/2.155, allocations: 3.984 kB / 0.7447 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.122e-06/2.155, allocations: 1.203 kB / 0.7447 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.661e-05/2.155, allocations: 0 / 0.7447 GB, free: 15.32 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.006496/2.161, allocations: 2.622 MB / 0.7473 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/2.161, allocations: 10.12 kB / 0.7473 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/2.162, allocations: 132.7 kB / 0.7474 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008352/2.162, allocations: 0.6788 MB / 0.7481 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.661e-05/2.162, allocations: 74.92 kB / 0.7481 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.906e-05/2.163, allocations: 58.58 kB / 0.7482 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/2.164, allocations: 0.9232 MB / 0.7491 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/2.164, allocations: 4 kB / 0.7491 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/2.164, allocations: 26.5 kB / 0.7491 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/2.164, allocations: 29.05 kB / 0.7492 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/2.165, allocations: 0.7639 MB / 0.7499 GB, free: 12.71 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/2.187, allocations: 12.69 MB / 0.7623 GB, free: 3.43 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/2.189, allocations: 0.6426 MB / 0.7629 GB, free: 3.324 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006244/2.19, allocations: 371.8 kB / 0.7633 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.304/2.494, allocations: 158.8 MB / 0.9184 GB, free: 8.082 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/2.495, allocations: 462.1 kB / 0.9188 GB, free: 7.75 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 2.905e-06/2.495, allocations: 0 / 0.9188 GB, free: 7.75 MB / 0.7637 GB Notification: Performance of matching and sorting (n=109): time 0.008111/2.503, allocations: 2.175 MB / 0.921 GB, free: 5.961 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/2.503, allocations: 169.6 kB / 0.9211 GB, free: 5.762 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/2.505, allocations: 1.281 MB / 0.9224 GB, free: 4.777 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/2.505, allocations: 36.7 kB / 0.9224 GB, free: 4.742 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/2.505, allocations: 463.4 kB / 0.9228 GB, free: 4.473 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002493/2.505, allocations: 359 kB / 0.9232 GB, free: 4.168 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/2.506, allocations: 155.8 kB / 0.9233 GB, free: 4.062 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001237/2.506, allocations: 348.9 kB / 0.9237 GB, free: 3.734 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006223/2.506, allocations: 357.6 kB / 0.924 GB, free: 3.508 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007105/2.507, allocations: 0.5182 MB / 0.9245 GB, free: 3.066 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/2.508, allocations: 0.8289 MB / 0.9253 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/2.508, allocations: 0.875 kB / 0.9253 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002195/2.511, allocations: 1.235 MB / 0.9265 GB, free: 1.5 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/2.511, allocations: 5.406 kB / 0.9265 GB, free: 1.496 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/2.511, allocations: 4 kB / 0.9265 GB, free: 1.492 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004549/2.515, allocations: 1.07 MB / 0.9276 GB, free: 436 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000527/2.516, allocations: 105.8 kB / 0.9277 GB, free: 336 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/2.517, allocations: 1.12 MB / 0.9288 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007419/2.518, allocations: 112.2 kB / 0.9289 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.334e-05/2.518, allocations: 35.94 kB / 0.9289 GB, free: 15.04 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 (diaphragm.C2.b,diaphragm.C1.a,bend.C2.b,bend.C1.a,sourceP.C.b,sinkP.C.a,pipe.C2.b,pipe.C1.a,reliefValve.C2.b,reliefValve.C1.a,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(7,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0004224/2.518, allocations: 323.7 kB / 0.9292 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/2.519, allocations: 110.5 kB / 0.9293 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/2.521, allocations: 1.691 MB / 0.931 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002185/2.524, allocations: 1.18 MB / 0.9321 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/2.524, allocations: 6.844 kB / 0.9321 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/2.524, allocations: 3.984 kB / 0.9322 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004184/2.528, allocations: 2.791 MB / 0.9349 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/2.528, allocations: 3.984 kB / 0.9349 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/2.529, allocations: 136.8 kB / 0.935 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00356/2.532, allocations: 1.051 MB / 0.936 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.35e-05/2.532, allocations: 16 kB / 0.9361 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/2.534, allocations: 1.209 MB / 0.9372 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/2.534, allocations: 4 kB / 0.9372 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/2.537, allocations: 1.897 MB / 0.9391 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004068/2.537, allocations: 287.1 kB / 0.9394 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/2.538, allocations: 24 kB / 0.9394 GB, free: 4.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006034/2.538, allocations: 63.64 kB / 0.9394 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/2.538, allocations: 73.09 kB / 0.9395 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/2.538, allocations: 31.98 kB / 0.9395 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001105/2.539, allocations: 0.9437 MB / 0.9405 GB, free: 3.113 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.3e-07/2.539, allocations: 0 / 0.9405 GB, free: 3.113 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004039/2.544, allocations: 1.69 MB / 0.9421 GB, free: 1.422 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (reliefValve.z,reliefValve.v,reliefValve.Wdyn) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,reliefValve.clapper_is_free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(7,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007661/2.551, allocations: 2.422 MB / 0.9445 GB, free: 15.3 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002334/2.554, allocations: 1.186 MB / 0.9456 GB, free: 14.11 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/2.554, allocations: 0 / 0.9456 GB, free: 14.11 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001244/2.555, allocations: 0.5846 MB / 0.9462 GB, free: 13.54 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/2.557, allocations: 331.9 kB / 0.9465 GB, free: 13.21 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/2.56, allocations: 2.935 MB / 0.9494 GB, free: 10.27 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007141/2.561, allocations: 1.19 MB / 0.9506 GB, free: 9.051 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004516/2.562, allocations: 122.5 kB / 0.9507 GB, free: 8.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/2.562, allocations: 67.42 kB / 0.9507 GB, free: 8.863 MB / 0.795 GB Notification: Performance of SimCode: time 6.71e-07/2.562, allocations: 0 / 0.9507 GB, free: 8.863 MB / 0.795 GB Notification: Performance of Templates: time 0.2188/2.781, allocations: 60.67 MB / 1.01 GB, free: 444.8 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe 2>&1)