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.774/0.774, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.000267, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.139, allocations: 31.33 MB / 235.4 MB, free: 5.461 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.Fluid.Examples.SimpleExamples.TestDynamicReliefValve): time 1.555/1.694, allocations: 294.8 MB / 0.5178 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1971/1.892, allocations: 195.7 MB / 0.7089 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/1.893, allocations: 15.88 kB / 0.7089 GB, free: 9.543 MB / 0.5919 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.0007878/1.894, allocations: 300.1 kB / 0.7092 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001551/1.895, allocations: 0.5403 MB / 0.7097 GB, free: 8.707 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.3253/2.22, allocations: 10.37 MB / 0.7198 GB, free: 8.285 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001772/2.222, allocations: 1.305 MB / 0.7211 GB, free: 8.285 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008815/2.223, allocations: 0.6477 MB / 0.7217 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008432/2.224, allocations: 0.5298 MB / 0.7223 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008547/2.225, allocations: 0.7522 MB / 0.723 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001515/2.225, allocations: 79.66 kB / 0.7231 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03647/2.261, allocations: 22.64 MB / 0.7452 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000542/2.262, allocations: 366.3 kB / 0.7455 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008281/2.263, allocations: 0.6369 MB / 0.7462 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02957/2.292, allocations: 12.63 MB / 0.7585 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/2.293, allocations: 2.094 kB / 0.7585 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.933e-06/2.293, allocations: 0 / 0.7585 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.661e-05/2.293, allocations: 0.7812 kB / 0.7585 GB, free: 6.922 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.008374/2.301, allocations: 3.087 MB / 0.7615 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/2.301, allocations: 11.16 kB / 0.7615 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/2.301, allocations: 163.2 kB / 0.7617 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008916/2.302, allocations: 0.7915 MB / 0.7625 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.58e-05/2.302, allocations: 99.83 kB / 0.7625 GB, free: 4.453 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/2.302, allocations: 97.84 kB / 0.7626 GB, free: 4.453 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/2.304, allocations: 1.09 MB / 0.7637 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/2.304, allocations: 6.766 kB / 0.7637 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.367e-05/2.304, allocations: 36.25 kB / 0.7637 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/2.304, allocations: 26.31 kB / 0.7638 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/2.306, allocations: 1.041 MB / 0.7648 GB, free: 3.988 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.004448/2.31, allocations: 4.724 MB / 0.7694 GB, free: 16.62 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/2.312, allocations: 0.7405 MB / 0.7701 GB, free: 16.45 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/2.312, allocations: 311.7 kB / 0.7704 GB, free: 16.4 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4194/2.732, allocations: 226.1 MB / 0.9912 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008629/2.733, allocations: 411.6 kB / 0.9916 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=69): time 2.184e-06/2.733, allocations: 0 / 0.9916 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of matching and sorting (n=69): time 0.1656/2.898, allocations: 1.541 MB / 0.9931 GB, free: 470 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/2.898, allocations: 196.7 kB / 0.9933 GB, free: 469.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/2.9, allocations: 1.355 MB / 0.9946 GB, free: 469.6 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.726e-05/2.9, allocations: 36.67 kB / 0.9946 GB, free: 469.6 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/2.901, allocations: 0.5783 MB / 0.9952 GB, free: 469.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/2.901, allocations: 227.5 kB / 0.9954 GB, free: 469.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/2.901, allocations: 175.7 kB / 0.9956 GB, free: 469.4 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 6.182e-05/2.901, allocations: 340.9 kB / 0.9959 GB, free: 469.1 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006386/2.902, allocations: 331.9 kB / 0.9962 GB, free: 469.1 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007552/2.902, allocations: 0.5026 MB / 0.9967 GB, free: 468.9 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/2.904, allocations: 0.7596 MB / 0.9975 GB, free: 468.7 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/2.904, allocations: 1.688 kB / 0.9975 GB, free: 468.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002085/2.906, allocations: 1.097 MB / 0.9985 GB, free: 468.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/2.906, allocations: 11.09 kB / 0.9986 GB, free: 468.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/2.906, allocations: 5.656 kB / 0.9986 GB, free: 468.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004041/2.91, allocations: 0.6079 MB / 0.9992 GB, free: 468.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000615/2.91, allocations: 156.9 kB / 0.9993 GB, free: 468.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008508/2.911, allocations: 0.8697 MB / 1 GB, free: 468 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006495/2.912, allocations: 100.4 kB / 1 GB, free: 468 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/2.912, allocations: 41.98 kB / 1 GB, free: 468 MB / 0.8262 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.0004262/2.913, allocations: 352 kB / 1.001 GB, free: 467.9 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/2.913, allocations: 112.8 kB / 1.001 GB, free: 467.8 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/2.915, allocations: 1 MB / 1.002 GB, free: 467.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/2.915, allocations: 10.94 kB / 1.002 GB, free: 467.7 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/2.915, allocations: 0 / 1.002 GB, free: 467.7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/2.915, allocations: 4.312 kB / 1.002 GB, free: 467.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/2.917, allocations: 2.066 MB / 1.004 GB, free: 467.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/2.917, allocations: 0 / 1.004 GB, free: 467.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004998/2.918, allocations: 107 kB / 1.004 GB, free: 467.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003067/2.921, allocations: 0.5356 MB / 1.004 GB, free: 467.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/2.921, allocations: 25.23 kB / 1.004 GB, free: 467.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007895/2.922, allocations: 0.8789 MB / 1.005 GB, free: 466.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/2.922, allocations: 6.969 kB / 1.005 GB, free: 466.6 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/2.924, allocations: 1.37 MB / 1.007 GB, free: 466.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/2.925, allocations: 284.3 kB / 1.007 GB, free: 466.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/2.925, allocations: 25.31 kB / 1.007 GB, free: 466.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/2.925, allocations: 46.78 kB / 1.007 GB, free: 466.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/2.926, allocations: 63.91 kB / 1.007 GB, free: 466.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.426e-05/2.926, allocations: 24.31 kB / 1.007 GB, free: 466.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001033/2.927, allocations: 0.99 MB / 1.008 GB, free: 466 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/2.927, allocations: 0 / 1.008 GB, free: 466 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.006703/2.933, allocations: 2.023 MB / 1.01 GB, free: 465.9 MB / 0.8262 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.009574/2.943, allocations: 3.001 MB / 1.013 GB, free: 465.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001812/2.945, allocations: 0.7922 MB / 1.014 GB, free: 465.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/2.945, allocations: 0 / 1.014 GB, free: 465.8 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008051/2.946, allocations: 407.8 kB / 1.014 GB, free: 465.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009244/2.947, allocations: 183 kB / 1.014 GB, free: 465.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/2.95, allocations: 2.705 MB / 1.017 GB, free: 464.4 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/2.95, allocations: 1.151 MB / 1.018 GB, free: 463.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0004849/2.951, allocations: 154.6 kB / 1.018 GB, free: 463.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/2.951, allocations: 69.05 kB / 1.018 GB, free: 463.7 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/2.951, allocations: 0 / 1.018 GB, free: 463.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.06445/3.015, allocations: 62.4 MB / 1.079 GB, free: 419.4 MB / 0.8262 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)