Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 105.4 kB / 16.4 MB, free: 6.5 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.00123/0.00123, allocations: 192.1 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002148, allocations: 301.6 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9333/0.9333, allocations: 169.3 MB / 0.499 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 103.8 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4538/0.4559, allocations: 86.97 MB / 0.767 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve): time 0.02122/0.4772, allocations: 20.75 MB / 0.7873 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.006737/0.484, allocations: 4.939 MB / 0.7921 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000598/0.4846, allocations: 19.88 kB / 0.7921 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007686/0.4854, allocations: 270.1 kB / 0.7924 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001785/0.4872, allocations: 0.8219 MB / 0.7932 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.4889, allocations: 0.7086 MB / 0.7939 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001491/0.4904, allocations: 1.384 MB / 0.7952 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005699/0.4909, allocations: 448.1 kB / 0.7957 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008903/0.4918, allocations: 0.5759 MB / 0.7962 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005417/0.4924, allocations: 446 kB / 0.7967 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.201e-05/0.4925, allocations: 43.94 kB / 0.7967 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.4936, allocations: 0.6355 MB / 0.7973 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.4937, allocations: 127.5 kB / 0.7974 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.494, allocations: 290.5 kB / 0.7977 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.495, allocations: 0.8476 MB / 0.7985 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4951, allocations: 0 / 0.7985 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.056e-06/0.4951, allocations: 0 / 0.7985 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.4951, allocations: 3.938 kB / 0.7985 GB, free: 3.574 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001486/0.4966, allocations: 0.9265 MB / 0.7995 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.4966, allocations: 12.03 kB / 0.7995 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.4968, allocations: 64.19 kB / 0.7995 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006905/0.4975, allocations: 475.3 kB / 0.8 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.4975, allocations: 28.66 kB / 0.8 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.4976, allocations: 40 kB / 0.8 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006105/0.4982, allocations: 306 kB / 0.8003 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.4982, allocations: 0 / 0.8003 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.4982, allocations: 12 kB / 0.8003 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.4982, allocations: 8 kB / 0.8004 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005875/0.4988, allocations: 266.4 kB / 0.8006 GB, free: 1.367 MB / 0.5606 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.002058/0.5009, allocations: 1.329 MB / 0.8019 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004879/0.5014, allocations: 254.5 kB / 0.8021 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.5017, allocations: 132.8 kB / 0.8023 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003852/0.5021, allocations: 0.4947 MB / 0.8028 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.5022, allocations: 42.81 kB / 0.8028 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=25): time 2.695e-06/0.5022, allocations: 4 kB / 0.8028 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of matching and sorting (n=25): time 0.001659/0.5038, allocations: 0.5618 MB / 0.8034 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.5039, allocations: 55.41 kB / 0.8034 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004755/0.5044, allocations: 470.1 kB / 0.8039 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.5044, allocations: 37.7 kB / 0.8039 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.5046, allocations: 236.5 kB / 0.8041 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.5047, allocations: 90.69 kB / 0.8042 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.5048, allocations: 81.58 kB / 0.8043 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.505, allocations: 358.8 kB / 0.8046 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.5053, allocations: 128.5 kB / 0.8047 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.5056, allocations: 182 kB / 0.8049 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005901/0.5062, allocations: 273.1 kB / 0.8052 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5062, allocations: 0 / 0.8052 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00157/0.5078, allocations: 0.4919 MB / 0.8057 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.5078, allocations: 4 kB / 0.8057 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.5078, allocations: 4 kB / 0.8057 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003629/0.5082, allocations: 52.81 kB / 0.8057 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.5086, allocations: 75.89 kB / 0.8058 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004628/0.5091, allocations: 0.5563 MB / 0.8063 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/0.5095, allocations: 47.78 kB / 0.8064 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.5095, allocations: 19.97 kB / 0.8064 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003879/0.5099, allocations: 240.1 kB / 0.8066 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000336/0.5103, allocations: 177 kB / 0.8068 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005403/0.5108, allocations: 258.5 kB / 0.807 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.5108, allocations: 0 / 0.807 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0007454/0.5116, allocations: 374.9 kB / 0.8074 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.5116, allocations: 8 kB / 0.8074 GB, free: 9.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.5116, allocations: 3.984 kB / 0.8074 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.526e-06/0.5116, allocations: 0 / 0.8074 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.512, allocations: 83.83 kB / 0.8075 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.512, allocations: 7.938 kB / 0.8075 GB, free: 9.883 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/0.5125, allocations: 47.73 kB / 0.8075 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.5125, allocations: 19.98 kB / 0.8076 GB, free: 9.816 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 33 * 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 {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.5126, allocations: 195.5 kB / 0.8077 GB, free: 9.621 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.576e-05/0.5127, allocations: 47.44 kB / 0.8078 GB, free: 9.574 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009027/0.5136, allocations: 425 kB / 0.8082 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.5137, allocations: 4 kB / 0.8082 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5137, allocations: 0 / 0.8082 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.5137, allocations: 3.984 kB / 0.8082 GB, free: 9.137 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.5151, allocations: 0.9441 MB / 0.8091 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.5152, allocations: 4 kB / 0.8091 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.5154, allocations: 43.91 kB / 0.8092 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001645/0.5156, allocations: 44.83 kB / 0.8092 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.5156, allocations: 12.11 kB / 0.8092 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003371/0.516, allocations: 0.5602 MB / 0.8098 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.516, allocations: 7.969 kB / 0.8098 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008152/0.5168, allocations: 498.8 kB / 0.8103 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.517, allocations: 152.4 kB / 0.8104 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/0.517, allocations: 8 kB / 0.8104 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.5174, allocations: 27.97 kB / 0.8104 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.5174, allocations: 23.91 kB / 0.8105 GB, free: 6.676 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.5175, allocations: 8 kB / 0.8105 GB, free: 6.668 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003556/0.5178, allocations: 326.9 kB / 0.8108 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5178, allocations: 3.938 kB / 0.8108 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007349/0.5186, allocations: 251.5 kB / 0.811 GB, free: 6.102 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (25): * Single equations (assignments): 21 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005424/0.5191, allocations: 251.8 kB / 0.8113 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001149/0.5203, allocations: 477.9 kB / 0.8117 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5203, allocations: 0 / 0.8117 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000386/0.5207, allocations: 172.8 kB / 0.8119 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.5217, allocations: 217.4 kB / 0.8121 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.5233, allocations: 0.8467 MB / 0.8129 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.5237, allocations: 0.8586 MB / 0.8138 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.5238, allocations: 43.42 kB / 0.8138 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/0.5238, allocations: 4 kB / 0.8138 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of Templates: time 0.01461/0.5384, allocations: 10.24 MB / 0.8238 GB, free: 9.051 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)