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.8105/0.8105, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.835e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1664, allocations: 31.98 MB / 236.8 MB, free: 5.305 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.SimpleExamples.TestDynamicReliefValve): time 1.603/1.769, allocations: 295.5 MB / 0.5198 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1957/1.965, allocations: 186.1 MB / 0.7016 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000655/1.966, allocations: 8 kB / 0.7016 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007583/1.967, allocations: 350.8 kB / 0.7019 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001167/1.968, allocations: 0.5055 MB / 0.7024 GB, free: 196 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3271/2.295, allocations: 9.002 MB / 0.7112 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001226/2.296, allocations: 1.151 MB / 0.7123 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004587/2.297, allocations: 420 kB / 0.7127 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004654/2.297, allocations: 442.8 kB / 0.7132 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005147/2.298, allocations: 0.5696 MB / 0.7137 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.697e-05/2.298, allocations: 29.97 kB / 0.7137 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03401/2.332, allocations: 20.37 MB / 0.7336 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00038/2.332, allocations: 269.2 kB / 0.7339 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005978/2.333, allocations: 0.5193 MB / 0.7344 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02376/2.357, allocations: 10.7 MB / 0.7448 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/2.357, allocations: 0 / 0.7448 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.164e-06/2.357, allocations: 2.469 kB / 0.7449 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.522e-05/2.357, allocations: 0 / 0.7449 GB, free: 15.54 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.006976/2.364, allocations: 2.443 MB / 0.7472 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/2.364, allocations: 14.38 kB / 0.7473 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002948/2.364, allocations: 131 kB / 0.7474 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/2.365, allocations: 0.6725 MB / 0.748 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.482e-05/2.365, allocations: 75.17 kB / 0.7481 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.133e-05/2.365, allocations: 59.31 kB / 0.7482 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/2.367, allocations: 0.9316 MB / 0.7491 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/2.367, allocations: 6.656 kB / 0.7491 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/2.367, allocations: 28.59 kB / 0.7491 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/2.367, allocations: 35.69 kB / 0.7491 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/2.368, allocations: 0.78 MB / 0.7499 GB, free: 13 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.02214/2.39, allocations: 12.76 MB / 0.7624 GB, free: 3.738 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/2.392, allocations: 0.6879 MB / 0.763 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005694/2.392, allocations: 379.2 kB / 0.7634 GB, free: 3.574 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3251/2.717, allocations: 160.2 MB / 0.9198 GB, free: 8.805 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/2.718, allocations: 476.9 kB / 0.9203 GB, free: 8.453 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 3.226e-06/2.718, allocations: 0 / 0.9203 GB, free: 8.453 MB / 0.7637 GB Notification: Performance of matching and sorting (n=109): time 0.007943/2.726, allocations: 2.212 MB / 0.9225 GB, free: 6.621 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.495e-05/2.726, allocations: 166.3 kB / 0.9226 GB, free: 6.426 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/2.728, allocations: 1.283 MB / 0.9239 GB, free: 5.441 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/2.728, allocations: 37.06 kB / 0.9239 GB, free: 5.406 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/2.728, allocations: 467.4 kB / 0.9244 GB, free: 5.137 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/2.729, allocations: 360 kB / 0.9247 GB, free: 4.832 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/2.729, allocations: 87.09 kB / 0.9248 GB, free: 4.77 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001206/2.729, allocations: 344.5 kB / 0.9251 GB, free: 4.445 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000638/2.73, allocations: 363.2 kB / 0.9255 GB, free: 4.211 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007363/2.73, allocations: 0.5339 MB / 0.926 GB, free: 3.758 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/2.732, allocations: 0.8524 MB / 0.9268 GB, free: 3.148 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/2.732, allocations: 0 / 0.9268 GB, free: 3.148 MB / 0.7637 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002092/2.734, allocations: 1.265 MB / 0.928 GB, free: 2.262 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/2.734, allocations: 4 kB / 0.928 GB, free: 2.258 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/2.734, allocations: 6.906 kB / 0.9281 GB, free: 2.254 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004438/2.738, allocations: 1.147 MB / 0.9292 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/2.739, allocations: 113.6 kB / 0.9293 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/2.74, allocations: 1.12 MB / 0.9304 GB, free: 176 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007101/2.741, allocations: 121.2 kB / 0.9305 GB, free: 64 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-05/2.741, allocations: 33.55 kB / 0.9305 GB, free: 36 kB / 0.7637 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.0005151/2.742, allocations: 334.9 kB / 0.9308 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/2.742, allocations: 106.6 kB / 0.9309 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/2.745, allocations: 1.71 MB / 0.9326 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002211/2.747, allocations: 1.196 MB / 0.9338 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/2.747, allocations: 3.938 kB / 0.9338 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/2.747, allocations: 3.984 kB / 0.9338 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/2.751, allocations: 2.826 MB / 0.9366 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/2.751, allocations: 0 / 0.9366 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005793/2.752, allocations: 141.8 kB / 0.9367 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003637/2.756, allocations: 1.094 MB / 0.9378 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.588e-05/2.756, allocations: 22.81 kB / 0.9378 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/2.757, allocations: 1.223 MB / 0.939 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/2.757, allocations: 0 / 0.939 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003334/2.761, allocations: 1.924 MB / 0.9409 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004233/2.761, allocations: 311 kB / 0.9411 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/2.761, allocations: 20 kB / 0.9412 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005568/2.762, allocations: 63.89 kB / 0.9412 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/2.762, allocations: 72.89 kB / 0.9413 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.244e-05/2.762, allocations: 23.98 kB / 0.9413 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001094/2.763, allocations: 0.9515 MB / 0.9422 GB, free: 5.383 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/2.763, allocations: 0 / 0.9422 GB, free: 5.383 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00441/2.767, allocations: 1.686 MB / 0.9439 GB, free: 3.695 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.007362/2.775, allocations: 2.386 MB / 0.9462 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002416/2.777, allocations: 1.194 MB / 0.9474 GB, free: 404 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/2.777, allocations: 4 kB / 0.9474 GB, free: 400 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001176/2.778, allocations: 0.6007 MB / 0.948 GB, free: 15.8 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/2.78, allocations: 338.8 kB / 0.9483 GB, free: 15.47 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/2.784, allocations: 3.03 MB / 0.9513 GB, free: 12.42 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006991/2.785, allocations: 1.191 MB / 0.9524 GB, free: 11.21 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004271/2.785, allocations: 122.2 kB / 0.9525 GB, free: 11.09 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/2.785, allocations: 67.42 kB / 0.9526 GB, free: 11.02 MB / 0.795 GB Notification: Performance of SimCode: time 5.81e-07/2.785, allocations: 0 / 0.9526 GB, free: 11.02 MB / 0.795 GB Notification: Performance of Templates: time 0.247/3.032, allocations: 59.91 MB / 1.011 GB, free: 449.1 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: