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.0007442/0.0007442, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004756/0.004756, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.32/1.32, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001711/0.001711, allocations: 270.6 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9482/0.9482, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004231/0.0004231, allocations: 14.67 kB / 0.5986 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1755, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve): time 0.01857/0.1941, allocations: 20.05 MB / 0.7047 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.007762/0.2019, allocations: 4.916 MB / 0.7095 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007002/0.2027, allocations: 15.88 kB / 0.7095 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008321/0.2035, allocations: 238.5 kB / 0.7097 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002132/0.2057, allocations: 0.7413 MB / 0.7105 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.2076, allocations: 0.6381 MB / 0.7111 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002029/0.2096, allocations: 1.816 MB / 0.7129 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005445/0.2102, allocations: 380.2 kB / 0.7132 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000859/0.211, allocations: 0.5134 MB / 0.7137 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005684/0.2116, allocations: 442.1 kB / 0.7141 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.2117, allocations: 23.94 kB / 0.7142 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.2128, allocations: 0.6043 MB / 0.7148 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.2129, allocations: 103.5 kB / 0.7149 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.2132, allocations: 292.2 kB / 0.7151 GB, free: 252 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009379/0.2141, allocations: 0.8059 MB / 0.7159 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.2141, allocations: 4 kB / 0.7159 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2141, allocations: 3.938 kB / 0.7159 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.2141, allocations: 0 / 0.7159 GB, free: 15.43 MB / 0.5137 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.001397/0.2155, allocations: 0.8255 MB / 0.7167 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.2156, allocations: 8.031 kB / 0.7167 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.2157, allocations: 68.19 kB / 0.7168 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005634/0.2163, allocations: 455.1 kB / 0.7172 GB, free: 14 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.2163, allocations: 28.66 kB / 0.7173 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.867e-05/0.2164, allocations: 39.94 kB / 0.7173 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006401/0.217, allocations: 313.9 kB / 0.7176 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2171, allocations: 4 kB / 0.7176 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.2171, allocations: 12 kB / 0.7176 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.2171, allocations: 8 kB / 0.7176 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006422/0.2178, allocations: 286.4 kB / 0.7179 GB, free: 13.32 MB / 0.5137 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.00205/0.2198, allocations: 1.353 MB / 0.7192 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.2203, allocations: 265.4 kB / 0.7195 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.2207, allocations: 144.7 kB / 0.7196 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000447/0.2211, allocations: 0.4986 MB / 0.7201 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.2212, allocations: 42.56 kB / 0.7201 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 1.303e-06/0.2212, allocations: 0 / 0.7201 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.001715/0.2229, allocations: 0.601 MB / 0.7207 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.2229, allocations: 55.41 kB / 0.7208 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/0.2234, allocations: 462.2 kB / 0.7212 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.2235, allocations: 33.64 kB / 0.7213 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.2236, allocations: 252.4 kB / 0.7215 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 7.208e-05/0.2237, allocations: 78.75 kB / 0.7216 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.2238, allocations: 37.7 kB / 0.7216 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2239, allocations: 362.7 kB / 0.722 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003052/0.2242, allocations: 127.9 kB / 0.7221 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/0.2246, allocations: 189.7 kB / 0.7223 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006138/0.2252, allocations: 290.7 kB / 0.7225 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2252, allocations: 4 kB / 0.7225 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001513/0.2267, allocations: 0.5094 MB / 0.723 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.551e-05/0.2268, allocations: 105.1 kB / 0.7231 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.2268, allocations: 4 kB / 0.7231 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003547/0.2272, allocations: 52.81 kB / 0.7232 GB, free: 7.535 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.2276, allocations: 83.88 kB / 0.7233 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004274/0.228, allocations: 0.5601 MB / 0.7238 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.2285, allocations: 63.7 kB / 0.7239 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.2286, allocations: 19.98 kB / 0.7239 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.2286, allocations: 4 kB / 0.7239 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007074/0.2293, allocations: 330 kB / 0.7242 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-06/0.2293, allocations: 0 / 0.7242 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.21e-06/0.2293, allocations: 4 kB / 0.7242 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003731/0.2297, allocations: 87.88 kB / 0.7243 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.995e-06/0.2297, allocations: 4 kB / 0.7243 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004061/0.2301, allocations: 55.7 kB / 0.7244 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.2302, allocations: 20 kB / 0.7244 GB, free: 6.293 MB / 0.5137 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.0002267/0.2304, allocations: 253.6 kB / 0.7246 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.2305, allocations: 51.34 kB / 0.7247 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009659/0.2314, allocations: 440 kB / 0.7251 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2315, allocations: 0 / 0.7251 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2315, allocations: 0 / 0.7251 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.2315, allocations: 11.92 kB / 0.7251 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.2329, allocations: 0.9652 MB / 0.726 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.233, allocations: 0 / 0.726 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.2332, allocations: 47.97 kB / 0.7261 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001612/0.2334, allocations: 56.77 kB / 0.7261 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.2334, allocations: 8 kB / 0.7262 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003239/0.2337, allocations: 0.5564 MB / 0.7267 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2337, allocations: 4.031 kB / 0.7267 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007874/0.2345, allocations: 0.5117 MB / 0.7272 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.2347, allocations: 156.3 kB / 0.7273 GB, free: 3.074 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.713e-05/0.2348, allocations: 8 kB / 0.7274 GB, free: 3.066 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.2351, allocations: 47.95 kB / 0.7274 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.294e-05/0.2352, allocations: 19.97 kB / 0.7274 GB, free: 3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.2353, allocations: 15.94 kB / 0.7274 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003457/0.2356, allocations: 322.9 kB / 0.7277 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2356, allocations: 3.938 kB / 0.7277 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007412/0.2364, allocations: 255.5 kB / 0.728 GB, free: 2.418 MB / 0.5137 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.0005263/0.2369, allocations: 258.2 kB / 0.7282 GB, free: 2.164 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001185/0.2381, allocations: 491.5 kB / 0.7287 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2381, allocations: 0 / 0.7287 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004203/0.2385, allocations: 186.7 kB / 0.7289 GB, free: 1.504 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.2401, allocations: 260.6 kB / 0.7291 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.2415, allocations: 1.018 MB / 0.7301 GB, free: 200 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.2419, allocations: 0.8513 MB / 0.731 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004164/0.2423, allocations: 120.2 kB / 0.7311 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.789e-05/0.2424, allocations: 43.42 kB / 0.7311 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of SimCode: time 4.2e-07/0.2424, allocations: 0 / 0.7311 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of Templates: time 0.01667/0.2591, allocations: 9.872 MB / 0.7408 GB, free: 5.453 MB / 0.5294 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)