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.001111/0.001111, allocations: 105 kB / 16.41 MB, free: 6.465 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.001093/0.001093, allocations: 187 kB / 17.34 MB, free: 5.719 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002172/0.002172, allocations: 286.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9881/0.9881, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 95.84 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4232, allocations: 86.96 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve): time 0.02296/0.4462, allocations: 20.74 MB / 0.7873 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.006956/0.4532, allocations: 4.936 MB / 0.7921 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006835/0.4539, allocations: 19.88 kB / 0.7921 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000873/0.4548, allocations: 278 kB / 0.7924 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002348/0.4572, allocations: 0.8233 MB / 0.7932 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00203/0.4592, allocations: 0.7129 MB / 0.7939 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001934/0.4612, allocations: 1.384 MB / 0.7952 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000788/0.462, allocations: 444.1 kB / 0.7957 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.4632, allocations: 0.5837 MB / 0.7962 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007883/0.464, allocations: 446.1 kB / 0.7967 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.4641, allocations: 36 kB / 0.7967 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.4654, allocations: 0.6316 MB / 0.7973 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.4656, allocations: 123.5 kB / 0.7974 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003981/0.466, allocations: 286.5 kB / 0.7977 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.4674, allocations: 0.8593 MB / 0.7985 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.4674, allocations: 0 / 0.7985 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4674, allocations: 0 / 0.7985 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.894e-05/0.4674, allocations: 0 / 0.7985 GB, free: 3.547 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.001695/0.4691, allocations: 0.9264 MB / 0.7994 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.4692, allocations: 12.03 kB / 0.7995 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.4693, allocations: 64.19 kB / 0.7995 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007966/0.4701, allocations: 483.3 kB / 0.8 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.4702, allocations: 24.66 kB / 0.8 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.146e-05/0.4702, allocations: 36 kB / 0.8 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.4709, allocations: 306 kB / 0.8003 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.471, allocations: 4 kB / 0.8003 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.471, allocations: 12 kB / 0.8003 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.471, allocations: 11.94 kB / 0.8004 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006483/0.4717, allocations: 262.4 kB / 0.8006 GB, free: 1.336 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.002296/0.474, allocations: 1.337 MB / 0.8019 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.4745, allocations: 256.1 kB / 0.8022 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.4748, allocations: 136.8 kB / 0.8023 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004206/0.4753, allocations: 0.4988 MB / 0.8028 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.4753, allocations: 30.56 kB / 0.8028 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=25): time 2.464e-06/0.4753, allocations: 3.938 kB / 0.8028 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=25): time 0.001847/0.4772, allocations: 0.565 MB / 0.8034 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.4772, allocations: 55.41 kB / 0.8034 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/0.4778, allocations: 470.1 kB / 0.8039 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.4778, allocations: 33.7 kB / 0.8039 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.4781, allocations: 240.5 kB / 0.8041 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.321e-05/0.4781, allocations: 90.69 kB / 0.8042 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.4783, allocations: 81.58 kB / 0.8043 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4784, allocations: 358.8 kB / 0.8046 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.4788, allocations: 120.5 kB / 0.8047 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.4792, allocations: 190 kB / 0.8049 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006571/0.4798, allocations: 265.1 kB / 0.8052 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.4799, allocations: 0 / 0.8052 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001656/0.4815, allocations: 497.4 kB / 0.8056 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.4816, allocations: 12 kB / 0.8057 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4816, allocations: 0 / 0.8057 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003687/0.4819, allocations: 52.81 kB / 0.8057 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.4823, allocations: 67.89 kB / 0.8058 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004595/0.4828, allocations: 0.5602 MB / 0.8063 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.4833, allocations: 47.84 kB / 0.8064 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.419e-05/0.4833, allocations: 27.91 kB / 0.8064 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004692/0.4838, allocations: 239.1 kB / 0.8066 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003618/0.4842, allocations: 177 kB / 0.8068 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005937/0.4848, allocations: 264.7 kB / 0.807 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.274e-06/0.4848, allocations: 0 / 0.807 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0008468/0.4857, allocations: 375.5 kB / 0.8074 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.4857, allocations: 8 kB / 0.8074 GB, free: 9.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.4857, allocations: 3.984 kB / 0.8074 GB, free: 9.941 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/0.4857, allocations: 4 kB / 0.8074 GB, free: 9.938 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003994/0.4861, allocations: 79.83 kB / 0.8075 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4861, allocations: 4 kB / 0.8075 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.4866, allocations: 51.86 kB / 0.8075 GB, free: 9.805 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.4866, allocations: 19.98 kB / 0.8076 GB, free: 9.785 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.0001637/0.4868, allocations: 192.2 kB / 0.8077 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.4869, allocations: 47.44 kB / 0.8078 GB, free: 9.543 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.488, allocations: 426.8 kB / 0.8082 GB, free: 9.113 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.488, allocations: 4 kB / 0.8082 GB, free: 9.109 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.488, allocations: 7.938 kB / 0.8082 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.488, allocations: 3.984 kB / 0.8082 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.4897, allocations: 0.9402 MB / 0.8091 GB, free: 8.086 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.4897, allocations: 8.125 kB / 0.8091 GB, free: 8.078 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000247/0.4899, allocations: 43.91 kB / 0.8092 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.4901, allocations: 40.83 kB / 0.8092 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.4902, allocations: 11.98 kB / 0.8092 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003773/0.4906, allocations: 0.5523 MB / 0.8098 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.4906, allocations: 12.03 kB / 0.8098 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008656/0.4914, allocations: 498.6 kB / 0.8103 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.4917, allocations: 156.4 kB / 0.8104 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.752e-05/0.4917, allocations: 7.938 kB / 0.8104 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.4921, allocations: 23.97 kB / 0.8104 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.4922, allocations: 23.91 kB / 0.8105 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.702e-05/0.4922, allocations: 12 kB / 0.8105 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003831/0.4926, allocations: 326.9 kB / 0.8108 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.954e-06/0.4926, allocations: 0 / 0.8108 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008128/0.4934, allocations: 255.5 kB / 0.811 GB, free: 6.07 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.0005961/0.494, allocations: 248.4 kB / 0.8113 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001294/0.4953, allocations: 473.1 kB / 0.8117 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4953, allocations: 0 / 0.8117 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00044/0.4958, allocations: 163.8 kB / 0.8119 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.4969, allocations: 229.9 kB / 0.8121 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.4986, allocations: 0.8492 MB / 0.8129 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.4991, allocations: 0.8586 MB / 0.8138 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.4992, allocations: 47.42 kB / 0.8138 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of SimCode: time 1.994e-06/0.4992, allocations: 0 / 0.8138 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of Templates: time 0.01594/0.5152, allocations: 10.17 MB / 0.8237 GB, free: 9.098 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)