Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.GasComponents.TestGasValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestGasValve") translateModel(ThermoPower.Test.GasComponents.TestGasValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.GasComponents.TestGasValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 106 kB / 17.06 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001648, allocations: 200 kB / 18 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2763/0.2763, allocations: 48.85 MB / 320.1 MB, free: 11 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 71.89 kB / 450.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 59.16 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGasValve): time 0.4831/0.5888, allocations: 251.7 MB / 0.7435 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.008375/0.5972, allocations: 4.807 MB / 0.7482 GB, free: 9.465 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/0.5986, allocations: 31.81 kB / 0.7482 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002644/0.6012, allocations: 1.025 MB / 0.7492 GB, free: 8.402 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003268/0.6046, allocations: 1.418 MB / 0.7506 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00604/0.6106, allocations: 2.473 MB / 0.753 GB, free: 4.508 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005026/0.6157, allocations: 4.38 MB / 0.7573 GB, free: 116 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.289/0.9047, allocations: 1.312 MB / 0.7586 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003407/0.9081, allocations: 1.645 MB / 0.7602 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003086/0.9112, allocations: 1.462 MB / 0.7616 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0006736/0.9119, allocations: 203 kB / 0.7618 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004104/0.916, allocations: 1.682 MB / 0.7635 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.9173, allocations: 0.9173 MB / 0.7644 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002525/0.9199, allocations: 1.306 MB / 0.7656 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006373/0.9263, allocations: 3.487 MB / 0.769 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.9263, allocations: 3.094 kB / 0.769 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.395e-06/0.9263, allocations: 0.9688 kB / 0.769 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.739e-05/0.9264, allocations: 0.6875 kB / 0.769 GB, free: 4.176 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: 424 * Number of variables: 424 Notification: Performance of Generate backend data structure: time 0.006594/0.933, allocations: 2.62 MB / 0.7716 GB, free: 19.23 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.9331, allocations: 16.8 kB / 0.7716 GB, free: 19.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002179/0.9352, allocations: 393.6 kB / 0.772 GB, free: 19.12 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.9375, allocations: 1.068 MB / 0.773 GB, free: 18.72 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.9376, allocations: 135.4 kB / 0.7732 GB, free: 18.72 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002832/0.9379, allocations: 173.5 kB / 0.7733 GB, free: 18.72 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00424/0.9422, allocations: 2.113 MB / 0.7754 GB, free: 18.61 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.776e-05/0.9422, allocations: 0 / 0.7754 GB, free: 18.61 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/0.9425, allocations: 79.03 kB / 0.7755 GB, free: 18.61 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.885e-05/0.9425, allocations: 42.5 kB / 0.7755 GB, free: 18.61 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004051/0.9466, allocations: 1.812 MB / 0.7773 GB, free: 18.59 MB / 0.6075 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.01232/0.9589, allocations: 7.212 MB / 0.7843 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004587/0.9636, allocations: 1.441 MB / 0.7857 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.9647, allocations: 0.4986 MB / 0.7862 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.366e-05/0.9648, allocations: 29.58 kB / 0.7863 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.868e-05/0.9649, allocations: 63.22 kB / 0.7863 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=100): time 3.256e-06/0.9649, allocations: 1 kB / 0.7863 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of matching and sorting (n=100): time 0.01452/0.9795, allocations: 3.57 MB / 0.7898 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.9796, allocations: 123.8 kB / 0.7899 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.982, allocations: 1.843 MB / 0.7917 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003234/0.9824, allocations: 60.55 kB / 0.7918 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/0.9829, allocations: 0.8151 MB / 0.7926 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/0.9832, allocations: 352.4 kB / 0.7929 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004164/0.9836, allocations: 276.5 kB / 0.7932 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.9838, allocations: 303.1 kB / 0.7935 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.9851, allocations: 0.5684 MB / 0.794 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.9866, allocations: 0.9794 MB / 0.795 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.9893, allocations: 1.493 MB / 0.7964 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.9894, allocations: 4.781 kB / 0.7964 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.005054/0.9944, allocations: 2.066 MB / 0.7985 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.9945, allocations: 12.31 kB / 0.7985 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/0.9945, allocations: 14.45 kB / 0.7985 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00986/1.004, allocations: 1.542 MB / 0.8 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/1.006, allocations: 325.7 kB / 0.8003 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005484/1.011, allocations: 6.033 MB / 0.8062 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002526/1.014, allocations: 294.6 kB / 0.8065 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001671/1.014, allocations: 79.12 kB / 0.8065 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001789/1.016, allocations: 0.8333 MB / 0.8074 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001494/1.017, allocations: 0.9631 MB / 0.8083 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002611/1.02, allocations: 1.456 MB / 0.8097 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.346e-06/1.02, allocations: 4.516 kB / 0.8097 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.004196/1.024, allocations: 1.848 MB / 0.8115 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/1.024, allocations: 14.69 kB / 0.8115 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/1.024, allocations: 18.91 kB / 0.8116 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006802/1.025, allocations: 176.2 kB / 0.8117 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/1.027, allocations: 409.5 kB / 0.8121 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006188/1.033, allocations: 7.903 MB / 0.8198 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/1.035, allocations: 191.6 kB / 0.82 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/1.036, allocations: 78.83 kB / 0.8201 GB, free: 14.61 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(2,18), (2,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0007576/1.036, allocations: 277.8 kB / 0.8204 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004699/1.037, allocations: 204.9 kB / 0.8206 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004184/1.041, allocations: 1.641 MB / 0.8222 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/1.041, allocations: 13.22 kB / 0.8222 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.041, allocations: 0 / 0.8222 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/1.041, allocations: 5.625 kB / 0.8222 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006954/1.048, allocations: 3.494 MB / 0.8256 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/1.048, allocations: 5.344 kB / 0.8256 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007317/1.049, allocations: 192.7 kB / 0.8258 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008174/1.057, allocations: 1.248 MB / 0.827 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/1.057, allocations: 35.56 kB / 0.827 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00482/1.062, allocations: 6.035 MB / 0.8329 GB, free: 8.172 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/1.062, allocations: 7.656 kB / 0.8329 GB, free: 8.172 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/1.067, allocations: 1.943 MB / 0.8348 GB, free: 7.625 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009264/1.067, allocations: 315.9 kB / 0.8351 GB, free: 7.418 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/1.068, allocations: 32.16 kB / 0.8352 GB, free: 7.414 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001856/1.07, allocations: 123.4 kB / 0.8353 GB, free: 7.414 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/1.07, allocations: 86.17 kB / 0.8354 GB, free: 7.402 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/1.07, allocations: 84.5 kB / 0.8354 GB, free: 7.402 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001646/1.072, allocations: 1.258 MB / 0.8367 GB, free: 7.219 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.1e-07/1.072, allocations: 0 / 0.8367 GB, free: 7.219 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003413/1.075, allocations: 1.11 MB / 0.8378 GB, free: 7.113 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(2,20), (2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00141/1.077, allocations: 0.5415 MB / 0.8383 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.006925/1.083, allocations: 2.579 MB / 0.8408 GB, free: 6.078 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/1.084, allocations: 9.062 kB / 0.8408 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001961/1.085, allocations: 0.6972 MB / 0.8415 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005662/1.091, allocations: 1.116 MB / 0.8426 GB, free: 4.625 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005258/1.096, allocations: 3.059 MB / 0.8456 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009756/1.097, allocations: 1.366 MB / 0.8469 GB, free: 468 kB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001646/1.099, allocations: 379.2 kB / 0.8473 GB, free: 84 kB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/1.099, allocations: 124.9 kB / 0.8474 GB, free: 15.96 MB / 0.6387 GB Notification: Performance of SimCode: time 6.51e-07/1.099, allocations: 0 / 0.8474 GB, free: 15.96 MB / 0.6387 GB Notification: Performance of Templates: time 0.08472/1.184, allocations: 54.29 MB / 0.9004 GB, free: 9.898 MB / 0.6856 GB make -j1 -f ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.makefile (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.sim & ./ThermoPower_ThermoPower.Test.GasComponents.TestGasValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe 2>&1)