Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9254/0.9254, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.000277, allocations: 19.97 kB / 204.7 MB, free: 6.16 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1792, allocations: 31.33 MB / 236 MB, free: 3.895 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.Fluid.Examples.SimpleExamples.TestDynamicReliefValve): time 1.693/1.872, allocations: 294.2 MB / 0.5177 GB, free: 7.875 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.702/2.574, allocations: 195.7 MB / 0.7088 GB, free: 2.824 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007716/2.575, allocations: 21.12 kB / 0.7089 GB, free: 2.82 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicReliefValve.mo:72:3-73: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/DynamicReliefValve.mo:74:3-76:57:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:54:3-55: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/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 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/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/PressureLosses/Bend.mo:57:3-58: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/Bend.mo:59:3-60:67:writable] Warning: Connector C2 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/Diaphragm.mo:34:3-35: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/Diaphragm.mo:36:3-37: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.0005556/2.576, allocations: 299.1 kB / 0.7091 GB, free: 2.812 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001212/2.577, allocations: 0.5419 MB / 0.7097 GB, free: 2.793 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03588/2.613, allocations: 10.39 MB / 0.7198 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001951/2.615, allocations: 1.318 MB / 0.7211 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008216/2.616, allocations: 0.6503 MB / 0.7217 GB, free: 2.34 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008082/2.616, allocations: 0.5327 MB / 0.7223 GB, free: 2.336 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008106/2.617, allocations: 0.7496 MB / 0.723 GB, free: 2.336 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001268/2.617, allocations: 81.88 kB / 0.7231 GB, free: 2.336 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04467/2.662, allocations: 22.64 MB / 0.7452 GB, free: 14.51 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0006995/2.663, allocations: 366 kB / 0.7455 GB, free: 14.44 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0009667/2.664, allocations: 0.6341 MB / 0.7462 GB, free: 14.26 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.03566/2.7, allocations: 12.63 MB / 0.7585 GB, free: 6.926 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/2.7, allocations: 0 / 0.7585 GB, free: 6.926 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.572e-06/2.7, allocations: 4 kB / 0.7585 GB, free: 6.922 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.688e-05/2.7, allocations: 0 / 0.7585 GB, free: 6.922 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.008426/2.708, allocations: 3.09 MB / 0.7615 GB, free: 3.789 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/2.708, allocations: 12.03 kB / 0.7615 GB, free: 3.777 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/2.708, allocations: 158.1 kB / 0.7617 GB, free: 3.621 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/2.709, allocations: 0.7915 MB / 0.7624 GB, free: 2.816 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.582e-05/2.709, allocations: 103.7 kB / 0.7625 GB, free: 2.707 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/2.71, allocations: 92 kB / 0.7626 GB, free: 2.617 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/2.711, allocations: 1.083 MB / 0.7637 GB, free: 1.504 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/2.711, allocations: 3.938 kB / 0.7637 GB, free: 1.5 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/2.711, allocations: 46.52 kB / 0.7637 GB, free: 1.457 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/2.711, allocations: 24 kB / 0.7638 GB, free: 1.434 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/2.713, allocations: 1.036 MB / 0.7648 GB, free: 408 kB / 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.004759/2.718, allocations: 4.74 MB / 0.7694 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/2.72, allocations: 0.7334 MB / 0.7701 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00056/2.72, allocations: 314 kB / 0.7704 GB, free: 10.24 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6813/3.401, allocations: 226 MB / 0.9912 GB, free: 395.4 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008392/3.402, allocations: 414.1 kB / 0.9916 GB, free: 395.3 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=69): time 2.565e-06/3.402, allocations: 0.6562 kB / 0.9916 GB, free: 395.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=69): time 0.004901/3.407, allocations: 1.547 MB / 0.9931 GB, free: 394.8 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/3.407, allocations: 188.4 kB / 0.9933 GB, free: 394.6 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/3.409, allocations: 1.361 MB / 0.9946 GB, free: 394.3 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/3.409, allocations: 36.7 kB / 0.9946 GB, free: 394.2 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/3.409, allocations: 0.5866 MB / 0.9952 GB, free: 394 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/3.409, allocations: 235.5 kB / 0.9954 GB, free: 393.8 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/3.41, allocations: 180.2 kB / 0.9956 GB, free: 393.8 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 6.418e-05/3.41, allocations: 333.5 kB / 0.9959 GB, free: 393.5 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000595/3.41, allocations: 333.8 kB / 0.9962 GB, free: 393.4 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007395/3.411, allocations: 0.5036 MB / 0.9967 GB, free: 393.2 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/3.412, allocations: 0.751 MB / 0.9974 GB, free: 393 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/3.412, allocations: 0 / 0.9974 GB, free: 393 MB / 0.7761 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001891/3.414, allocations: 1.099 MB / 0.9985 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/3.414, allocations: 6.781 kB / 0.9985 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/3.414, allocations: 10.17 kB / 0.9985 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003713/3.418, allocations: 0.6105 MB / 0.9991 GB, free: 392.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006434/3.419, allocations: 158.2 kB / 0.9993 GB, free: 392.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009407/3.419, allocations: 0.8557 MB / 1 GB, free: 392 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/3.42, allocations: 112.7 kB / 1 GB, free: 391.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.346e-05/3.42, allocations: 38.25 kB / 1 GB, free: 391.9 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 16 (sourceP.C.ftype,reliefValve.fluid,pipe.fluid,sinkP.fluid,bend.fluid,diaphragm.fluid,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2,sourceP.fluid1,reliefValve.C2.diff_on_2,bend.C2.diff_on_2,pipe.C1.diff_on_2,bend.C2.diff_on_1,diaphragm.C2.diff_on_1,reliefValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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 {(4,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0005111/3.421, allocations: 352.9 kB / 1.001 GB, free: 391.8 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/3.421, allocations: 111.1 kB / 1.001 GB, free: 391.7 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/3.423, allocations: 0.9945 MB / 1.002 GB, free: 391.4 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/3.423, allocations: 7.688 kB / 1.002 GB, free: 391.4 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/3.423, allocations: 7.531 kB / 1.002 GB, free: 391.4 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/3.423, allocations: 7.922 kB / 1.002 GB, free: 391.4 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/3.426, allocations: 2.063 MB / 1.004 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/3.426, allocations: 1.406 kB / 1.004 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005032/3.426, allocations: 99.28 kB / 1.004 GB, free: 390.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002994/3.429, allocations: 0.5394 MB / 1.004 GB, free: 390.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.198e-05/3.429, allocations: 25.19 kB / 1.004 GB, free: 390.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008271/3.43, allocations: 0.8846 MB / 1.005 GB, free: 389.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/3.43, allocations: 7.594 kB / 1.005 GB, free: 389.5 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03464/3.465, allocations: 12.77 MB / 1.018 GB, free: 379.7 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003725/3.465, allocations: 281 kB / 1.018 GB, free: 379.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/3.465, allocations: 15.31 kB / 1.018 GB, free: 379.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005072/3.466, allocations: 49.45 kB / 1.018 GB, free: 379.4 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/3.466, allocations: 66.12 kB / 1.018 GB, free: 379.3 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/3.466, allocations: 26.73 kB / 1.018 GB, free: 379.3 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001006/3.467, allocations: 0.9876 MB / 1.019 GB, free: 378.5 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.9e-07/3.467, allocations: 0 / 1.019 GB, free: 378.5 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00842/3.476, allocations: 3.241 MB / 1.022 GB, free: 375.9 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (reliefValve.z,reliefValve.v,reliefValve.Wdyn) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,reliefValve.clapper_is_free,diaphragm.C2.diff_on_1,reliefValve.C2.diff_on_1,pipe.C1.diff_on_2,bend.C2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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 {(4,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01464/3.49, allocations: 4.015 MB / 1.026 GB, free: 372.7 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001984/3.492, allocations: 0.7847 MB / 1.027 GB, free: 372.2 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/3.492, allocations: 8.062 kB / 1.027 GB, free: 372.2 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000804/3.493, allocations: 398.9 kB / 1.027 GB, free: 371.9 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/3.494, allocations: 174.9 kB / 1.027 GB, free: 371.8 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00428/3.498, allocations: 3.429 MB / 1.031 GB, free: 368.3 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/3.499, allocations: 1.179 MB / 1.032 GB, free: 367.1 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0007091/3.5, allocations: 177 kB / 1.032 GB, free: 366.9 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000239/3.5, allocations: 83.42 kB / 1.032 GB, free: 366.8 MB / 0.7761 GB Notification: Performance of SimCode: time 9.72e-07/3.5, allocations: 0 / 1.032 GB, free: 366.8 MB / 0.7761 GB Notification: Performance of Templates: time 0.09201/3.592, allocations: 89.47 MB / 1.12 GB, free: 278.3 MB / 0.7761 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe 2>&1)