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.0008463/0.0008463, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009847/0.0009847, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001771/0.001771, allocations: 266 kB / 291.3 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9353/0.9353, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004245, allocations: 12.84 kB / 0.598 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2053, allocations: 88.55 MB / 0.6845 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve): time 0.0182/0.2236, allocations: 19.01 MB / 0.703 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006756/0.2304, allocations: 4.65 MB / 0.7076 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000675/0.2311, allocations: 19.88 kB / 0.7076 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007545/0.2319, allocations: 194.7 kB / 0.7078 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.2337, allocations: 0.6462 MB / 0.7084 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.2357, allocations: 0.5977 MB / 0.709 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001863/0.2376, allocations: 1.551 MB / 0.7105 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005214/0.2381, allocations: 347.1 kB / 0.7108 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009921/0.2391, allocations: 0.4979 MB / 0.7113 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007089/0.2398, allocations: 422.2 kB / 0.7117 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.068e-05/0.2399, allocations: 20 kB / 0.7118 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001539/0.2414, allocations: 0.5301 MB / 0.7123 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.2416, allocations: 103.5 kB / 0.7124 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.2418, allocations: 129.4 kB / 0.7125 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009121/0.2427, allocations: 0.5495 MB / 0.713 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.155e-05/0.2428, allocations: 0 / 0.713 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.035e-06/0.2428, allocations: 0 / 0.713 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.169e-05/0.2428, allocations: 4 kB / 0.713 GB, free: 2.188 MB / 0.4981 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.001847/0.2446, allocations: 0.8331 MB / 0.7138 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/0.2447, allocations: 12.03 kB / 0.7139 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.2449, allocations: 71.19 kB / 0.7139 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007596/0.2456, allocations: 430.9 kB / 0.7143 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.2457, allocations: 28.66 kB / 0.7144 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.407e-05/0.2457, allocations: 32 kB / 0.7144 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006876/0.2464, allocations: 314 kB / 0.7147 GB, free: 400 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.2465, allocations: 4 kB / 0.7147 GB, free: 396 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/0.2465, allocations: 16 kB / 0.7147 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.2465, allocations: 8 kB / 0.7147 GB, free: 372 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000603/0.2471, allocations: 278.4 kB / 0.715 GB, free: 96 kB / 0.4981 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.002194/0.2493, allocations: 1.356 MB / 0.7163 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005451/0.2499, allocations: 268.6 kB / 0.7166 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.2502, allocations: 148.8 kB / 0.7167 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006451/0.2509, allocations: 0.4949 MB / 0.7172 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.2509, allocations: 30.56 kB / 0.7172 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=25): time 2.385e-06/0.2509, allocations: 3.938 kB / 0.7172 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of matching and sorting (n=25): time 0.001652/0.2526, allocations: 0.5972 MB / 0.7178 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.2527, allocations: 59.36 kB / 0.7179 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004999/0.2532, allocations: 458.1 kB / 0.7183 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.2532, allocations: 33.7 kB / 0.7183 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.2534, allocations: 252.4 kB / 0.7186 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.2535, allocations: 86.75 kB / 0.7187 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/0.2535, allocations: 11.94 kB / 0.7187 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2537, allocations: 350.8 kB / 0.719 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.254, allocations: 123.9 kB / 0.7191 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.2543, allocations: 185.9 kB / 0.7193 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.2547, allocations: 148.9 kB / 0.7194 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2547, allocations: 0 / 0.7194 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009104/0.2556, allocations: 426.4 kB / 0.7198 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.265e-05/0.2557, allocations: 106.7 kB / 0.7199 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.2557, allocations: 0 / 0.7199 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/0.256, allocations: 56.81 kB / 0.72 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.2564, allocations: 71.88 kB / 0.7201 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005595/0.257, allocations: 0.5602 MB / 0.7206 GB, free: 9.945 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.2574, allocations: 71.75 kB / 0.7207 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.2575, allocations: 19.92 kB / 0.7207 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-06/0.2575, allocations: 4 kB / 0.7207 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006843/0.2582, allocations: 319.6 kB / 0.721 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-06/0.2582, allocations: 0 / 0.721 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/0.2582, allocations: 11.95 kB / 0.721 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.2586, allocations: 83.89 kB / 0.7211 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.2586, allocations: 3.984 kB / 0.7211 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.259, allocations: 59.73 kB / 0.7212 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.259, allocations: 20.02 kB / 0.7212 GB, free: 9.363 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002313/0.2592, allocations: 249 kB / 0.7214 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.421e-05/0.2593, allocations: 51.34 kB / 0.7215 GB, free: 9.059 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008994/0.2602, allocations: 439.9 kB / 0.7219 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.2603, allocations: 4 kB / 0.7219 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2603, allocations: 0 / 0.7219 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.2603, allocations: 3.984 kB / 0.7219 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.2618, allocations: 0.9731 MB / 0.7228 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.2618, allocations: 4.031 kB / 0.7229 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.262, allocations: 47.97 kB / 0.7229 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.2622, allocations: 52.89 kB / 0.7229 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.2622, allocations: 11.94 kB / 0.723 GB, free: 7.445 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003691/0.2626, allocations: 0.5601 MB / 0.7235 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2626, allocations: 32 / 0.7235 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007521/0.2634, allocations: 0.5001 MB / 0.724 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.2636, allocations: 160.3 kB / 0.7241 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.2636, allocations: 8 kB / 0.7242 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/0.264, allocations: 43.86 kB / 0.7242 GB, free: 6.102 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.851e-05/0.264, allocations: 27.97 kB / 0.7242 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.2641, allocations: 11.95 kB / 0.7242 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000349/0.2644, allocations: 318.9 kB / 0.7245 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2644, allocations: 0 / 0.7245 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007632/0.2652, allocations: 255.5 kB / 0.7248 GB, free: 5.504 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005843/0.2658, allocations: 242.4 kB / 0.725 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00119/0.267, allocations: 497.7 kB / 0.7255 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.267, allocations: 0 / 0.7255 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004066/0.2674, allocations: 182.7 kB / 0.7257 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.2688, allocations: 262.1 kB / 0.7259 GB, free: 4.355 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.2705, allocations: 0.9734 MB / 0.7269 GB, free: 3.344 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.2709, allocations: 0.8591 MB / 0.7277 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004784/0.2714, allocations: 116.2 kB / 0.7278 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.865e-05/0.2715, allocations: 39.38 kB / 0.7279 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of SimCode: time 2e-07/0.2715, allocations: 0 / 0.7279 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of Templates: time 0.01798/0.2895, allocations: 9.595 MB / 0.7372 GB, free: 8.883 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)