Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006984/0.0006986, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.003906/0.003907, allocations: 174.1 kB / 16.26 MB, free: 6.613 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.136/1.136, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.136/2.136, allocations: 390.9 MB / 0.6664 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002987, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6079/0.6082, allocations: 142.4 MB / 0.9552 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01659/0.6248, allocations: 20.06 MB / 0.9748 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006288/0.6312, allocations: 4.918 MB / 0.9796 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004778/0.6317, allocations: 16.31 kB / 0.9796 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006307/0.6323, allocations: 224.7 kB / 0.9798 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001688/0.634, allocations: 0.7444 MB / 0.9805 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001634/0.6356, allocations: 0.6475 MB / 0.9811 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001854/0.6375, allocations: 1.802 MB / 0.9829 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005134/0.638, allocations: 377.9 kB / 0.9833 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008347/0.6389, allocations: 0.5191 MB / 0.9838 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000563/0.6394, allocations: 443.9 kB / 0.9842 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.494e-05/0.6395, allocations: 24.09 kB / 0.9842 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.6406, allocations: 0.5948 MB / 0.9848 GB, free: 236 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.6407, allocations: 118.3 kB / 0.9849 GB, free: 144 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002822/0.641, allocations: 292.2 kB / 0.9852 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0009329/0.6419, allocations: 0.8042 MB / 0.986 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.6419, allocations: 1.344 kB / 0.986 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.413e-06/0.642, allocations: 0 / 0.986 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.642, allocations: 0 / 0.986 GB, free: 15.43 MB / 0.7481 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.001354/0.6433, allocations: 0.8348 MB / 0.9868 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.6434, allocations: 9.531 kB / 0.9868 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.29e-05/0.6434, allocations: 68.16 kB / 0.9869 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.822e-05/0.6436, allocations: 64.53 kB / 0.9869 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005299/0.6441, allocations: 447.1 kB / 0.9874 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.6441, allocations: 32.66 kB / 0.9874 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.6442, allocations: 36 kB / 0.9874 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006123/0.6448, allocations: 314 kB / 0.9877 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.6448, allocations: 8 kB / 0.9877 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.6449, allocations: 8 kB / 0.9877 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.6449, allocations: 8 kB / 0.9877 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000637/0.6455, allocations: 286.4 kB / 0.988 GB, free: 13.46 MB / 0.7481 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.002003/0.6475, allocations: 1.356 MB / 0.9893 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005001/0.648, allocations: 271.5 kB / 0.9896 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.6484, allocations: 144.7 kB / 0.9897 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003947/0.6488, allocations: 0.4947 MB / 0.9902 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.6488, allocations: 38.56 kB / 0.9903 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.6488, allocations: 0 / 0.9903 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of matching and sorting (n=25): time 0.001737/0.6505, allocations: 0.5983 MB / 0.9908 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.6506, allocations: 55.41 kB / 0.9909 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004722/0.6511, allocations: 470 kB / 0.9913 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.6511, allocations: 29.7 kB / 0.9914 GB, free: 9.719 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.6513, allocations: 248.5 kB / 0.9916 GB, free: 9.473 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.356e-05/0.6513, allocations: 82.73 kB / 0.9917 GB, free: 9.391 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.418e-05/0.6514, allocations: 37.7 kB / 0.9917 GB, free: 9.348 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.6515, allocations: 358.8 kB / 0.9921 GB, free: 8.988 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.6519, allocations: 123.9 kB / 0.9922 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.6522, allocations: 193 kB / 0.9924 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000626/0.6529, allocations: 292.5 kB / 0.9926 GB, free: 8.367 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.6529, allocations: 7.938 kB / 0.9927 GB, free: 8.359 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001535/0.6544, allocations: 0.4983 MB / 0.9931 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/0.6545, allocations: 109.7 kB / 0.9932 GB, free: 7.734 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.6545, allocations: 0 / 0.9932 GB, free: 7.734 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/0.6548, allocations: 52.86 kB / 0.9933 GB, free: 7.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003556/0.6552, allocations: 83.88 kB / 0.9934 GB, free: 7.598 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003912/0.6556, allocations: 0.564 MB / 0.9939 GB, free: 7.008 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.6561, allocations: 63.7 kB / 0.994 GB, free: 6.945 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.6562, allocations: 19.98 kB / 0.994 GB, free: 6.926 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.453e-06/0.6562, allocations: 4 kB / 0.994 GB, free: 6.922 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007098/0.6569, allocations: 323.7 kB / 0.9943 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.6569, allocations: 0 / 0.9943 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.318e-06/0.6569, allocations: 4 kB / 0.9943 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.6573, allocations: 83.89 kB / 0.9944 GB, free: 6.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.6573, allocations: 7.938 kB / 0.9944 GB, free: 6.512 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004366/0.6578, allocations: 67.62 kB / 0.9945 GB, free: 6.445 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.6578, allocations: 20.02 kB / 0.9945 GB, free: 6.426 MB / 0.7481 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.0002152/0.658, allocations: 241 kB / 0.9947 GB, free: 6.18 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.6581, allocations: 51.42 kB / 0.9948 GB, free: 6.129 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009606/0.6591, allocations: 450 kB / 0.9952 GB, free: 5.676 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.6591, allocations: 0 / 0.9952 GB, free: 5.676 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.6591, allocations: 4 kB / 0.9952 GB, free: 5.672 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.6591, allocations: 3.938 kB / 0.9952 GB, free: 5.668 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.6605, allocations: 0.9676 MB / 0.9962 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.6606, allocations: 0 / 0.9962 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.6608, allocations: 55.84 kB / 0.9962 GB, free: 4.574 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.661, allocations: 44.83 kB / 0.9963 GB, free: 4.527 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.661, allocations: 8 kB / 0.9963 GB, free: 4.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003316/0.6613, allocations: 0.5641 MB / 0.9968 GB, free: 3.93 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.6614, allocations: 7.969 kB / 0.9968 GB, free: 3.922 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007784/0.6621, allocations: 0.5077 MB / 0.9973 GB, free: 3.383 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.6623, allocations: 160.3 kB / 0.9975 GB, free: 3.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.634e-05/0.6624, allocations: 4 kB / 0.9975 GB, free: 3.203 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.6628, allocations: 51.8 kB / 0.9975 GB, free: 3.152 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.6628, allocations: 23.91 kB / 0.9975 GB, free: 3.129 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.6629, allocations: 12 kB / 0.9976 GB, free: 3.117 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003166/0.6632, allocations: 322.9 kB / 0.9979 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6632, allocations: 0 / 0.9979 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007211/0.6639, allocations: 251.5 kB / 0.9981 GB, free: 2.559 MB / 0.7481 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.001391/0.6653, allocations: 1.185 MB / 0.9993 GB, free: 1.344 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.6665, allocations: 495.5 kB / 0.9997 GB, free: 0.8594 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.6665, allocations: 0 / 0.9997 GB, free: 0.8594 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.6669, allocations: 180 kB / 0.9999 GB, free: 0.6836 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.6684, allocations: 261.2 kB / 1 GB, free: 440 kB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/0.6748, allocations: 4.312 MB / 1.004 GB, free: 12 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.6752, allocations: 0.8629 MB / 1.005 GB, free: 11.11 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004505/0.6756, allocations: 112.2 kB / 1.005 GB, free: 11 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.6759, allocations: 179.4 kB / 1.005 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of SimCode: time 1.693e-06/0.6759, allocations: 0 / 1.005 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/0.705, allocations: 14.43 MB / 1.02 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/0.7053, allocations: 285.4 kB / 1.02 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.828, allocations: 0 / 1.02 GB, free: 12.36 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches