Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) 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) 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) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.546/1.546, allocations: 287.4 MB / 302.6 MB, free: 8.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 184.8 kB / 371.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.4 MB / 0.6298 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007589/0.0007591, allocations: 81.23 kB / 0.7431 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003633, allocations: 12.56 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1922, allocations: 115.3 MB / 0.9787 GB, free: 28.12 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01386/0.2061, allocations: 19.05 MB / 0.9973 GB, free: 9.008 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.004448/0.2106, allocations: 4.624 MB / 1.002 GB, free: 4.375 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004013/0.2111, allocations: 15.88 kB / 1.002 GB, free: 4.359 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0005154/0.2116, allocations: 194.7 kB / 1.002 GB, free: 4.168 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.001278/0.2129, allocations: 0.6472 MB / 1.003 GB, free: 3.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.2142, allocations: 0.5936 MB / 1.003 GB, free: 2.934 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001228/0.2155, allocations: 1.567 MB / 1.005 GB, free: 1.359 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003938/0.2159, allocations: 368 kB / 1.005 GB, free: 1.004 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006398/0.2165, allocations: 0.494 MB / 1.006 GB, free: 0.5078 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.2169, allocations: 422.2 kB / 1.006 GB, free: 96 kB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.217, allocations: 20 kB / 1.006 GB, free: 76 kB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009742/0.2179, allocations: 0.5223 MB / 1.007 GB, free: 15.55 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.2181, allocations: 103.5 kB / 1.007 GB, free: 15.45 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.2182, allocations: 125.4 kB / 1.007 GB, free: 15.32 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0006241/0.2188, allocations: 0.5572 MB / 1.007 GB, free: 14.76 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2188, allocations: 7.938 kB / 1.007 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2188, allocations: 4 kB / 1.007 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.2189, allocations: 0 / 1.007 GB, free: 14.75 MB / 0.6355 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.001342/0.2202, allocations: 0.8333 MB / 1.008 GB, free: 13.87 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.2203, allocations: 12.03 kB / 1.008 GB, free: 13.86 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.801e-05/0.2203, allocations: 62.67 kB / 1.008 GB, free: 13.79 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.41e-05/0.2204, allocations: 64.19 kB / 1.008 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005566/0.221, allocations: 455 kB / 1.009 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.221, allocations: 24.66 kB / 1.009 GB, free: 13.21 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.2211, allocations: 43.94 kB / 1.009 GB, free: 13.17 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005862/0.2217, allocations: 314 kB / 1.009 GB, free: 12.86 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2217, allocations: 0 / 1.009 GB, free: 12.86 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.2218, allocations: 8 kB / 1.009 GB, free: 12.85 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.2218, allocations: 8 kB / 1.009 GB, free: 12.84 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005904/0.2224, allocations: 282.4 kB / 1.009 GB, free: 12.57 MB / 0.6355 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.001952/0.2243, allocations: 1.356 MB / 1.011 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.2248, allocations: 266.5 kB / 1.011 GB, free: 10.82 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.2251, allocations: 148.8 kB / 1.011 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003627/0.2255, allocations: 0.5025 MB / 1.012 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.2255, allocations: 30.56 kB / 1.012 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=25): time 1.313e-06/0.2255, allocations: 0 / 1.012 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=25): time 0.001589/0.2271, allocations: 0.5962 MB / 1.012 GB, free: 9.391 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.2272, allocations: 59.34 kB / 1.012 GB, free: 9.32 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.2276, allocations: 462.1 kB / 1.013 GB, free: 8.855 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.2276, allocations: 33.7 kB / 1.013 GB, free: 8.816 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.2278, allocations: 244.4 kB / 1.013 GB, free: 8.574 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.981e-05/0.2279, allocations: 90.73 kB / 1.013 GB, free: 8.484 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.2279, allocations: 4 kB / 1.013 GB, free: 8.48 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.228, allocations: 362.8 kB / 1.013 GB, free: 8.117 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.2283, allocations: 116.1 kB / 1.013 GB, free: 8.004 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003208/0.2286, allocations: 192.7 kB / 1.014 GB, free: 7.797 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00054/0.2292, allocations: 282.4 kB / 1.014 GB, free: 7.512 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2292, allocations: 3.938 kB / 1.014 GB, free: 7.508 MB / 0.6355 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008785/0.2301, allocations: 424.7 kB / 1.014 GB, free: 7.086 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.2301, allocations: 106.7 kB / 1.014 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.2301, allocations: 7.938 kB / 1.014 GB, free: 6.961 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003247/0.2305, allocations: 52.92 kB / 1.015 GB, free: 6.906 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.2308, allocations: 83.88 kB / 1.015 GB, free: 6.824 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003637/0.2312, allocations: 0.5679 MB / 1.015 GB, free: 6.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004388/0.2317, allocations: 76.8 kB / 1.015 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.2317, allocations: 12 kB / 1.015 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.659e-06/0.2317, allocations: 0 / 1.015 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006422/0.2324, allocations: 315.7 kB / 1.016 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-06/0.2324, allocations: 0 / 1.016 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.037e-06/0.2324, allocations: 4 kB / 1.016 GB, free: 5.832 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.2328, allocations: 91.88 kB / 1.016 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-06/0.2328, allocations: 0 / 1.016 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003769/0.2331, allocations: 63.73 kB / 1.016 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.2332, allocations: 15.98 kB / 1.016 GB, free: 5.664 MB / 0.6355 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.0001945/0.2334, allocations: 245 kB / 1.016 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.2335, allocations: 51.34 kB / 1.016 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008869/0.2343, allocations: 436.1 kB / 1.016 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2344, allocations: 7.984 kB / 1.016 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2344, allocations: 0 / 1.016 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2344, allocations: 0 / 1.016 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.2357, allocations: 0.9745 MB / 1.017 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2357, allocations: 0 / 1.017 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.236, allocations: 59.89 kB / 1.017 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/0.2361, allocations: 40.83 kB / 1.017 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.2361, allocations: 12.06 kB / 1.017 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002986/0.2365, allocations: 0.5524 MB / 1.018 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2365, allocations: 4.031 kB / 1.018 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007316/0.2372, allocations: 0.5077 MB / 1.018 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.2374, allocations: 168.3 kB / 1.019 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.2374, allocations: 4 kB / 1.019 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003269/0.2378, allocations: 39.97 kB / 1.019 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.2378, allocations: 23.97 kB / 1.019 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.2379, allocations: 15.98 kB / 1.019 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002984/0.2382, allocations: 314.9 kB / 1.019 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.333e-06/0.2382, allocations: 0 / 1.019 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006584/0.2389, allocations: 263.3 kB / 1.019 GB, free: 1.809 MB / 0.6355 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.001304/0.2402, allocations: 1.187 MB / 1.02 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001065/0.2412, allocations: 493.6 kB / 1.021 GB, free: 116 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.2413, allocations: 4 kB / 1.021 GB, free: 112 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003912/0.2417, allocations: 180.1 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.243, allocations: 249.9 kB / 1.021 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003801/0.2468, allocations: 2.69 MB / 1.024 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.2472, allocations: 0.8549 MB / 1.025 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004126/0.2476, allocations: 124.2 kB / 1.025 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.2478, allocations: 179.4 kB / 1.025 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of SimCode: time 5.21e-07/0.2478, allocations: 0 / 1.025 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07738/0.3252, allocations: 14.43 MB / 1.039 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/0.3255, allocations: 246.5 kB / 1.039 GB, free: 13.28 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/2.616, allocations: 3.016 kB / 1.039 GB, free: 13.28 MB / 0.6667 GB (rm -f Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)