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.8499/0.8499, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002544/0.0002545, allocations: 15.98 kB / 204.7 MB, free: 6.16 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1511, allocations: 31.33 MB / 236 MB, free: 3.867 MB / 186.7 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.588/1.739, allocations: 293.9 MB / 0.5175 GB, free: 8.02 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4735/2.213, allocations: 188.3 MB / 0.7014 GB, free: 1.602 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003973/2.213, allocations: 4.719 kB / 0.7014 GB, free: 1.602 MB / 0.5573 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.0006433/2.214, allocations: 364.9 kB / 0.7018 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008155/2.215, allocations: 0.5031 MB / 0.7023 GB, free: 1.594 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02259/2.237, allocations: 8.844 MB / 0.7109 GB, free: 1.355 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001276/2.239, allocations: 1.16 MB / 0.712 GB, free: 1.355 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/2.239, allocations: 438.5 kB / 0.7125 GB, free: 1.297 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005342/2.24, allocations: 477.1 kB / 0.7129 GB, free: 1.297 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005979/2.24, allocations: 0.6017 MB / 0.7135 GB, free: 1.297 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 9.331e-05/2.24, allocations: 47.34 kB / 0.7135 GB, free: 1.293 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03428/2.275, allocations: 20.34 MB / 0.7334 GB, free: 13.34 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.000475/2.275, allocations: 285.6 kB / 0.7337 GB, free: 13.27 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008502/2.276, allocations: 0.5143 MB / 0.7342 GB, free: 13.24 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.03014/2.306, allocations: 10.82 MB / 0.7447 GB, free: 9.223 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/2.306, allocations: 0 / 0.7447 GB, free: 9.223 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.633e-06/2.306, allocations: 5.203 kB / 0.7448 GB, free: 9.219 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.28e-05/2.306, allocations: 0 / 0.7448 GB, free: 9.219 MB / 0.573 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.006956/2.313, allocations: 2.614 MB / 0.7473 GB, free: 7.609 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/2.313, allocations: 9.875 kB / 0.7473 GB, free: 7.609 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/2.313, allocations: 132.1 kB / 0.7474 GB, free: 7.539 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008376/2.314, allocations: 0.6792 MB / 0.7481 GB, free: 7.117 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-05/2.314, allocations: 72.33 kB / 0.7482 GB, free: 7.086 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-05/2.314, allocations: 64.34 kB / 0.7482 GB, free: 7.082 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/2.316, allocations: 0.9182 MB / 0.7491 GB, free: 6.734 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/2.316, allocations: 3.875 kB / 0.7491 GB, free: 6.734 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.915e-05/2.316, allocations: 27.94 kB / 0.7492 GB, free: 6.734 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/2.316, allocations: 26.23 kB / 0.7492 GB, free: 6.73 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/2.317, allocations: 0.771 MB / 0.7499 GB, free: 6.613 MB / 0.573 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.02324/2.34, allocations: 12.69 MB / 0.7623 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/2.342, allocations: 0.6486 MB / 0.763 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006097/2.343, allocations: 369.2 kB / 0.7633 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3333/2.676, allocations: 158.8 MB / 0.9184 GB, free: 10.66 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008857/2.677, allocations: 457.8 kB / 0.9189 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=109): time 2.325e-06/2.677, allocations: 0 / 0.9189 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of matching and sorting (n=109): time 0.007644/2.684, allocations: 2.178 MB / 0.921 GB, free: 8 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/2.685, allocations: 158.7 kB / 0.9212 GB, free: 7.809 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001553/2.686, allocations: 1.28 MB / 0.9224 GB, free: 6.508 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/2.686, allocations: 33.7 kB / 0.9224 GB, free: 6.469 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/2.687, allocations: 467.6 kB / 0.9229 GB, free: 6.008 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/2.687, allocations: 362.4 kB / 0.9232 GB, free: 5.66 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/2.687, allocations: 154.2 kB / 0.9234 GB, free: 5.504 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001254/2.687, allocations: 349.9 kB / 0.9237 GB, free: 5.156 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006135/2.688, allocations: 353.8 kB / 0.924 GB, free: 4.812 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007378/2.689, allocations: 0.5201 MB / 0.9246 GB, free: 4.23 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/2.69, allocations: 0.8311 MB / 0.9254 GB, free: 3.359 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/2.69, allocations: 0 / 0.9254 GB, free: 3.359 MB / 0.7605 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.0021/2.692, allocations: 1.235 MB / 0.9266 GB, free: 2.137 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/2.692, allocations: 9.875 kB / 0.9266 GB, free: 2.129 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/2.692, allocations: 4 kB / 0.9266 GB, free: 2.125 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00414/2.696, allocations: 1.063 MB / 0.9276 GB, free: 1.062 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/2.697, allocations: 101.5 kB / 0.9277 GB, free: 0.9688 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001434/2.698, allocations: 1.134 MB / 0.9288 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/2.699, allocations: 110.9 kB / 0.9289 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.99e-05/2.699, allocations: 33.08 kB / 0.929 GB, free: 15.67 MB / 0.7761 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.0004401/2.699, allocations: 334 kB / 0.9293 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/2.7, allocations: 106.6 kB / 0.9294 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002717/2.702, allocations: 1.687 MB / 0.931 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002126/2.704, allocations: 1.173 MB / 0.9322 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/2.704, allocations: 3.938 kB / 0.9322 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/2.704, allocations: 3.984 kB / 0.9322 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004283/2.709, allocations: 2.8 MB / 0.9349 GB, free: 9.523 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/2.709, allocations: 4 kB / 0.9349 GB, free: 9.52 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/2.709, allocations: 137.8 kB / 0.9351 GB, free: 9.391 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004339/2.714, allocations: 1.04 MB / 0.9361 GB, free: 8.352 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.027e-05/2.714, allocations: 23.98 kB / 0.9361 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/2.715, allocations: 1.226 MB / 0.9373 GB, free: 7.078 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/2.715, allocations: 0 / 0.9373 GB, free: 7.078 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2276/2.943, allocations: 23.41 MB / 0.9602 GB, free: 433.4 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004463/2.944, allocations: 291.2 kB / 0.9604 GB, free: 433.3 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.811e-05/2.944, allocations: 20.86 kB / 0.9605 GB, free: 433.3 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/2.944, allocations: 57.53 kB / 0.9605 GB, free: 433.3 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/2.944, allocations: 80.94 kB / 0.9606 GB, free: 433.3 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/2.944, allocations: 27.69 kB / 0.9606 GB, free: 433.3 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.001119/2.946, allocations: 0.9467 MB / 0.9615 GB, free: 433.2 MB / 0.7917 GB Notification: Performance of sort global known variables: time 2.4e-07/2.946, allocations: 0 / 0.9615 GB, free: 433.2 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.007616/2.953, allocations: 2.99 MB / 0.9645 GB, free: 433.1 MB / 0.7917 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.01127/2.964, allocations: 3.512 MB / 0.9679 GB, free: 432.8 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.002211/2.967, allocations: 1.177 MB / 0.969 GB, free: 432.7 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/2.967, allocations: 0 / 0.969 GB, free: 432.7 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001085/2.968, allocations: 0.5979 MB / 0.9696 GB, free: 432.7 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/2.97, allocations: 327 kB / 0.9699 GB, free: 432.7 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004818/2.974, allocations: 4.257 MB / 0.9741 GB, free: 430.8 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005952/2.975, allocations: 1.258 MB / 0.9753 GB, free: 430.1 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0005389/2.976, allocations: 138.2 kB / 0.9754 GB, free: 430.1 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/2.976, allocations: 77.78 kB / 0.9755 GB, free: 430.1 MB / 0.7917 GB Notification: Performance of SimCode: time 4.91e-07/2.976, allocations: 0 / 0.9755 GB, free: 430.1 MB / 0.7917 GB Notification: Performance of Templates: time 0.09389/3.07, allocations: 91.63 MB / 1.065 GB, free: 361.2 MB / 0.7917 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)