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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 182.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 223.1 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000969/0.0009689, allocations: 103.4 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4011/0.4011, allocations: 48.83 MB / 366.7 MB, free: 46.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 55.92 kB / 436.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1063, allocations: 59.16 MB / 495.8 MB, free: 136 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestGasValve): time 0.6807/0.787, allocations: 250.9 MB / 0.7292 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.007939/0.795, allocations: 4.963 MB / 0.7341 GB, free: 1 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.7968, allocations: 38.84 kB / 0.7341 GB, free: 0.9961 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.002464/0.7993, allocations: 0.8936 MB / 0.735 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.003185/0.8025, allocations: 1.353 MB / 0.7363 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.005658/0.8081, allocations: 2.271 MB / 0.7385 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.007794/0.8159, allocations: 6.039 MB / 0.7444 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.818, allocations: 1.126 MB / 0.7455 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003293/0.8213, allocations: 1.44 MB / 0.7469 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00246/0.8238, allocations: 1.515 MB / 0.7484 GB, free: 0.5547 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.000343/0.8241, allocations: 106.8 kB / 0.7485 GB, free: 0.5547 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004383/0.8285, allocations: 2.252 MB / 0.7507 GB, free: 0.5312 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0007832/0.8293, allocations: 0.8159 MB / 0.7515 GB, free: 456 kB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.8309, allocations: 1.195 MB / 0.7526 GB, free: 140 kB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.00455/0.8355, allocations: 3.544 MB / 0.7561 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.8355, allocations: 0 / 0.7561 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8355, allocations: 7.844 kB / 0.7561 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.399e-05/0.8356, allocations: 0 / 0.7561 GB, free: 15.4 MB / 0.5105 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.004917/0.8405, allocations: 2.627 MB / 0.7587 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.8405, allocations: 9.844 kB / 0.7587 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001799/0.8423, allocations: 391.1 kB / 0.7591 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/0.8441, allocations: 1.042 MB / 0.7601 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.539e-05/0.8441, allocations: 137 kB / 0.7602 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.8443, allocations: 169 kB / 0.7604 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003474/0.8478, allocations: 2.113 MB / 0.7624 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.8479, allocations: 0 / 0.7624 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.8481, allocations: 77.16 kB / 0.7625 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.238e-05/0.8481, allocations: 39.38 kB / 0.7625 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/0.8515, allocations: 1.816 MB / 0.7643 GB, free: 12.3 MB / 0.5105 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.0104/0.8619, allocations: 7.275 MB / 0.7714 GB, free: 7.629 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004368/0.8663, allocations: 1.447 MB / 0.7728 GB, free: 6.609 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.8674, allocations: 0.5113 MB / 0.7733 GB, free: 6.238 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 8.146e-05/0.8675, allocations: 20.75 kB / 0.7734 GB, free: 6.227 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/0.8675, allocations: 65.39 kB / 0.7734 GB, free: 6.168 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=100): time 3.427e-06/0.8675, allocations: 0 / 0.7734 GB, free: 6.168 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100): time 0.01437/0.8819, allocations: 3.566 MB / 0.7769 GB, free: 2.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.882, allocations: 117.7 kB / 0.777 GB, free: 2.844 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/0.8843, allocations: 1.853 MB / 0.7788 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.8845, allocations: 58.77 kB / 0.7789 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.8851, allocations: 0.8168 MB / 0.7797 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.8854, allocations: 341.4 kB / 0.78 GB, free: 308 kB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004292/0.8858, allocations: 279.4 kB / 0.7803 GB, free: 24 kB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.8859, allocations: 305.1 kB / 0.7806 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.8872, allocations: 0.5746 MB / 0.7811 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.8887, allocations: 0.9672 MB / 0.7821 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.8915, allocations: 1.497 MB / 0.7835 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.8915, allocations: 8 kB / 0.7835 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004653/0.8961, allocations: 2.059 MB / 0.7855 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.8962, allocations: 14.53 kB / 0.7856 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.8962, allocations: 12 kB / 0.7856 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01026/0.9065, allocations: 1.542 MB / 0.7871 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.908, allocations: 329.6 kB / 0.7874 GB, free: 8.512 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005527/0.9136, allocations: 6.043 MB / 0.7933 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002418/0.916, allocations: 325.4 kB / 0.7936 GB, free: 1.957 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/0.9162, allocations: 79.97 kB / 0.7937 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001767/0.918, allocations: 0.8277 MB / 0.7945 GB, free: 1.047 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001525/0.9195, allocations: 0.9588 MB / 0.7954 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0026/0.9221, allocations: 1.462 MB / 0.7969 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.609e-05/0.9222, allocations: 4 kB / 0.7969 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.00409/0.9263, allocations: 1.851 MB / 0.7987 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.9263, allocations: 8 kB / 0.7987 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.9263, allocations: 18.19 kB / 0.7987 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006734/0.927, allocations: 177.7 kB / 0.7989 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.9286, allocations: 410.7 kB / 0.7993 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005862/0.9345, allocations: 7.527 MB / 0.8066 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002394/0.9369, allocations: 226.9 kB / 0.8068 GB, free: 3.805 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.937, allocations: 78.5 kB / 0.8069 GB, free: 3.73 MB / 0.5417 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.0005237/0.9376, allocations: 275.4 kB / 0.8072 GB, free: 3.473 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004664/0.9381, allocations: 201.7 kB / 0.8073 GB, free: 3.273 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004306/0.9424, allocations: 1.64 MB / 0.8089 GB, free: 1.629 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.9424, allocations: 12 kB / 0.809 GB, free: 1.617 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.9424, allocations: 3.984 kB / 0.809 GB, free: 1.613 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.9424, allocations: 10.52 kB / 0.809 GB, free: 1.605 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006878/0.9493, allocations: 3.482 MB / 0.8124 GB, free: 14.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.9493, allocations: 4 kB / 0.8124 GB, free: 14.03 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007901/0.9501, allocations: 194.1 kB / 0.8126 GB, free: 13.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008655/0.9588, allocations: 1.303 MB / 0.8138 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/0.959, allocations: 41.03 kB / 0.8139 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004989/0.964, allocations: 6.041 MB / 0.8198 GB, free: 6.262 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.964, allocations: 6.531 kB / 0.8198 GB, free: 6.258 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006673/0.9707, allocations: 3.404 MB / 0.8231 GB, free: 2.754 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/0.9714, allocations: 310.5 kB / 0.8234 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/0.9716, allocations: 23.98 kB / 0.8234 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/0.9734, allocations: 159.7 kB / 0.8236 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.9736, allocations: 87.22 kB / 0.8237 GB, free: 2.168 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.9738, allocations: 80.84 kB / 0.8237 GB, free: 2.09 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001592/0.9754, allocations: 1.261 MB / 0.825 GB, free: 0.8047 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9754, allocations: 0 / 0.825 GB, free: 0.8047 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003252/0.9786, allocations: 1.147 MB / 0.8261 GB, free: 15.65 MB / 0.573 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.001322/0.98, allocations: 0.5429 MB / 0.8266 GB, free: 15.14 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006647/0.9866, allocations: 2.566 MB / 0.8291 GB, free: 12.64 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/0.9867, allocations: 7.719 kB / 0.8291 GB, free: 12.64 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.9885, allocations: 0.6878 MB / 0.8298 GB, free: 11.98 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005456/0.994, allocations: 1.087 MB / 0.8309 GB, free: 10.89 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005575/0.9996, allocations: 4.214 MB / 0.835 GB, free: 6.605 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009582/1.001, allocations: 1.408 MB / 0.8364 GB, free: 5.164 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001827/1.002, allocations: 381.1 kB / 0.8367 GB, free: 4.789 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/1.003, allocations: 123.4 kB / 0.8368 GB, free: 4.668 MB / 0.573 GB Notification: Performance of SimCode: time 8.62e-07/1.003, allocations: 4 kB / 0.8368 GB, free: 4.664 MB / 0.573 GB Notification: Performance of Templates: time 0.07594/1.079, allocations: 50.97 MB / 0.8866 GB, free: 1.773 MB / 0.6198 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)