Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7369/0.7369, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.191e-05/1.18e-05, allocations: 0 / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1255, allocations: 31.98 MB / 236.8 MB, free: 5.426 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve): time 1.437/1.562, allocations: 295.6 MB / 0.5199 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1747/1.737, allocations: 186.1 MB / 0.7017 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005103/1.738, allocations: 4 kB / 0.7017 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006649/1.738, allocations: 215 kB / 0.7019 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001083/1.739, allocations: 381.7 kB / 0.7023 GB, free: 320 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2811/2.02, allocations: 8.997 MB / 0.7111 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001299/2.022, allocations: 1.14 MB / 0.7122 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005664/2.022, allocations: 380.7 kB / 0.7125 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006975/2.023, allocations: 398.9 kB / 0.7129 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005828/2.024, allocations: 442.9 kB / 0.7133 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001142/2.024, allocations: 33.5 kB / 0.7134 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03158/2.055, allocations: 20.38 MB / 0.7333 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002581/2.056, allocations: 146.1 kB / 0.7334 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006243/2.056, allocations: 455.2 kB / 0.7338 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01799/2.074, allocations: 10.46 MB / 0.7441 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/2.074, allocations: 0 / 0.7441 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.493e-06/2.074, allocations: 0 / 0.7441 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.762e-05/2.074, allocations: 0 / 0.7441 GB, free: 15.78 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00538/2.08, allocations: 2.253 MB / 0.7463 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/2.08, allocations: 9.344 kB / 0.7463 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/2.08, allocations: 103.6 kB / 0.7464 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/2.08, allocations: 454.3 kB / 0.7468 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/2.081, allocations: 77.08 kB / 0.7469 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.685e-05/2.081, allocations: 76.55 kB / 0.747 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/2.082, allocations: 0.9478 MB / 0.7479 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/2.082, allocations: 2.906 kB / 0.7479 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/2.082, allocations: 24.91 kB / 0.7479 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/2.082, allocations: 34.94 kB / 0.7479 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/2.083, allocations: 0.7156 MB / 0.7486 GB, free: 13.47 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.03516/2.118, allocations: 21.65 MB / 0.7698 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/2.119, allocations: 0.7314 MB / 0.7705 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005221/2.12, allocations: 417.6 kB / 0.7709 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2951/2.415, allocations: 160 MB / 0.9272 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009051/2.416, allocations: 0.4932 MB / 0.9276 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=111): time 2.655e-06/2.416, allocations: 4 kB / 0.9277 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=111): time 0.006305/2.422, allocations: 2.148 MB / 0.9297 GB, free: 14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/2.422, allocations: 136.5 kB / 0.9299 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006103/2.423, allocations: 0.5586 MB / 0.9304 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/2.423, allocations: 33.08 kB / 0.9305 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/2.423, allocations: 355.8 kB / 0.9308 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/2.424, allocations: 364.5 kB / 0.9311 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/2.424, allocations: 87.16 kB / 0.9312 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001378/2.424, allocations: 387.9 kB / 0.9316 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005634/2.424, allocations: 345.6 kB / 0.9319 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006519/2.425, allocations: 0.5205 MB / 0.9324 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/2.426, allocations: 0.8934 MB / 0.9333 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/2.426, allocations: 0 / 0.9333 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001923/2.428, allocations: 1.201 MB / 0.9345 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/2.428, allocations: 11.94 kB / 0.9345 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/2.428, allocations: 8.094 kB / 0.9345 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003012/2.431, allocations: 1.023 MB / 0.9355 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/2.432, allocations: 100.3 kB / 0.9356 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/2.433, allocations: 1.183 MB / 0.9367 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005706/2.434, allocations: 122.7 kB / 0.9369 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/2.434, allocations: 27.69 kB / 0.9369 GB, free: 8.027 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 17 (sourceP.C.b,Sink1.C.a,VolumeD1.Cs3.b,VolumeD1.Cs2.b,VolumeD1.Cs1.b,VolumeD1.Ce.a,Pipe1.C2.b,Pipe1.C1.a,Sink2.C.a,Pipe2.C2.b,Pipe2.C1.a,ReliefValve.C2.b,ReliefValve.C1.a,ReliefValve.clapper_is_free,$whenCondition1,$whenCondition2,VolumeD1.Cs2.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002851/2.434, allocations: 228.3 kB / 0.9371 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.716e-05/2.434, allocations: 74.97 kB / 0.9372 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002541/2.437, allocations: 1.713 MB / 0.9389 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001854/2.439, allocations: 1.177 MB / 0.94 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/2.439, allocations: 8.75 kB / 0.94 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/2.439, allocations: 7.984 kB / 0.94 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/2.443, allocations: 2.658 MB / 0.9426 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/2.443, allocations: 0 / 0.9426 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/2.443, allocations: 133.4 kB / 0.9427 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002203/2.445, allocations: 0.8441 MB / 0.9436 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/2.445, allocations: 23.48 kB / 0.9436 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/2.447, allocations: 1.149 MB / 0.9447 GB, free: 1.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/2.447, allocations: 4 kB / 0.9447 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/2.449, allocations: 1.86 MB / 0.9465 GB, free: 15.9 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/2.45, allocations: 259.5 kB / 0.9468 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.734e-05/2.45, allocations: 16 kB / 0.9468 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/2.45, allocations: 59.81 kB / 0.9469 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/2.45, allocations: 72.83 kB / 0.9469 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/2.451, allocations: 20 kB / 0.9469 GB, free: 15.46 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004514/2.451, allocations: 467 kB / 0.9474 GB, free: 15 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.012e-06/2.451, allocations: 0 / 0.9474 GB, free: 15 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003836/2.455, allocations: 1.676 MB / 0.949 GB, free: 13.32 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (ReliefValve.z,ReliefValve.v,ReliefValve.Wdyn,VolumeD1.h) * 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): 67 * 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 {(6,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006619/2.461, allocations: 2.404 MB / 0.9514 GB, free: 11.21 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002277/2.464, allocations: 1.248 MB / 0.9526 GB, free: 9.945 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/2.464, allocations: 1.062 kB / 0.9526 GB, free: 9.945 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001298/2.465, allocations: 0.6431 MB / 0.9532 GB, free: 9.316 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/2.467, allocations: 337.7 kB / 0.9535 GB, free: 8.992 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002936/2.47, allocations: 2.536 MB / 0.956 GB, free: 6.438 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/2.47, allocations: 1.051 MB / 0.957 GB, free: 5.363 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003392/2.47, allocations: 89.12 kB / 0.9571 GB, free: 5.273 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/2.471, allocations: 59.44 kB / 0.9572 GB, free: 5.219 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/2.471, allocations: 0 / 0.9572 GB, free: 5.219 MB / 0.795 GB Notification: Performance of Templates: time 0.2284/2.699, allocations: 57.95 MB / 1.014 GB, free: 447.7 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe 2>&1) Environment - environmentSimulation: