Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve") translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_latest_Buildings.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.001025/0.001025, allocations: 86.56 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.001241/0.001241, 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.55/1.55, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.03/3.03, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003963/0.0003964, allocations: 13.77 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3964, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01851/0.4149, allocations: 19.04 MB / 1.077 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006655/0.4216, allocations: 4.649 MB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000633/0.4223, allocations: 15.88 kB / 1.081 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007005/0.423, allocations: 194.7 kB / 1.081 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001793/0.4248, allocations: 0.6478 MB / 1.082 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.4265, allocations: 0.6017 MB / 1.083 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001834/0.4284, allocations: 1.536 MB / 1.084 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005095/0.4289, allocations: 346.8 kB / 1.084 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008057/0.4297, allocations: 0.5018 MB / 1.085 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005548/0.4303, allocations: 418.2 kB / 1.085 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.525e-05/0.4304, allocations: 20 kB / 1.085 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.4314, allocations: 0.5223 MB / 1.086 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.4315, allocations: 103.5 kB / 1.086 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.4317, allocations: 129.4 kB / 1.086 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006566/0.4324, allocations: 0.5653 MB / 1.087 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.4324, allocations: 0 / 1.087 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.994e-06/0.4324, allocations: 0 / 1.087 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.4324, allocations: 4 kB / 1.087 GB, free: 8 MB / 0.8419 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.001348/0.4338, allocations: 0.8291 MB / 1.087 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4338, allocations: 12.03 kB / 1.087 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.4339, allocations: 63.25 kB / 1.087 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005621/0.4345, allocations: 434.9 kB / 1.088 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.4345, allocations: 24.66 kB / 1.088 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.4346, allocations: 40 kB / 1.088 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.4352, allocations: 314 kB / 1.088 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.4352, allocations: 0 / 1.088 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.4353, allocations: 12 kB / 1.088 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.4353, allocations: 8 kB / 1.088 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000607/0.4359, allocations: 290.3 kB / 1.089 GB, free: 5.902 MB / 0.8419 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.002052/0.438, allocations: 1.349 MB / 1.09 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004994/0.4385, allocations: 270.5 kB / 1.09 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002913/0.4388, allocations: 148.8 kB / 1.09 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004813/0.4393, allocations: 0.4908 MB / 1.091 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4393, allocations: 34.56 kB / 1.091 GB, free: 3.367 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.4393, allocations: 0 / 1.091 GB, free: 3.367 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25): time 0.001692/0.441, allocations: 0.594 MB / 1.091 GB, free: 2.746 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.4411, allocations: 51.41 kB / 1.091 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005074/0.4416, allocations: 466.1 kB / 1.092 GB, free: 2.219 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.4416, allocations: 33.7 kB / 1.092 GB, free: 2.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.4418, allocations: 240.5 kB / 1.092 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.505e-05/0.4419, allocations: 82.73 kB / 1.092 GB, free: 1.855 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.4419, allocations: 12 kB / 1.092 GB, free: 1.844 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4421, allocations: 358.8 kB / 1.093 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.4424, allocations: 119.9 kB / 1.093 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.4427, allocations: 185.2 kB / 1.093 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.4431, allocations: 158.1 kB / 1.093 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4431, allocations: 0 / 1.093 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009378/0.444, allocations: 440.8 kB / 1.093 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.806e-05/0.4441, allocations: 102.7 kB / 1.093 GB, free: 476 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.4441, allocations: 4 kB / 1.094 GB, free: 472 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003267/0.4445, allocations: 56.81 kB / 1.094 GB, free: 412 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003559/0.4448, allocations: 67.89 kB / 1.094 GB, free: 344 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004385/0.4453, allocations: 0.5718 MB / 1.094 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.4458, allocations: 63.67 kB / 1.094 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.958e-05/0.4458, allocations: 16.06 kB / 1.094 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/0.4458, allocations: 4 kB / 1.094 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006871/0.4465, allocations: 319.6 kB / 1.095 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-06/0.4465, allocations: 0 / 1.095 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.556e-06/0.4465, allocations: 4 kB / 1.095 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.4469, allocations: 83.88 kB / 1.095 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.4469, allocations: 0 / 1.095 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/0.4473, allocations: 63.7 kB / 1.095 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.4474, allocations: 19.98 kB / 1.095 GB, free: 15.18 MB / 0.8575 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.0002519/0.4476, allocations: 242.3 kB / 1.095 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.097e-05/0.4477, allocations: 55.34 kB / 1.095 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009534/0.4487, allocations: 452.6 kB / 1.095 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.669e-06/0.4487, allocations: 8 kB / 1.095 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4487, allocations: 0 / 1.095 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4487, allocations: 0 / 1.095 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.4502, allocations: 0.9618 MB / 1.096 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4502, allocations: 0 / 1.096 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.4505, allocations: 60.02 kB / 1.096 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.4506, allocations: 52.94 kB / 1.096 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.4507, allocations: 8 kB / 1.097 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003572/0.451, allocations: 0.5562 MB / 1.097 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.4511, allocations: 0 / 1.097 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007435/0.4518, allocations: 0.5108 MB / 1.098 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.452, allocations: 164.3 kB / 1.098 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.4521, allocations: 11.95 kB / 1.098 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.4524, allocations: 39.97 kB / 1.098 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.8e-05/0.4525, allocations: 27.83 kB / 1.098 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.4525, allocations: 15.92 kB / 1.098 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003404/0.4529, allocations: 322.9 kB / 1.098 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4529, allocations: 0 / 1.098 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007531/0.4537, allocations: 251.5 kB / 1.098 GB, free: 11.3 MB / 0.8575 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.0005259/0.4542, allocations: 248 kB / 1.099 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001154/0.4554, allocations: 485.4 kB / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4554, allocations: 0 / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004048/0.4558, allocations: 175.8 kB / 1.099 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.4571, allocations: 247.8 kB / 1.099 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.4587, allocations: 0.9824 MB / 1.1 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.4591, allocations: 0.8591 MB / 1.101 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004521/0.4596, allocations: 120.6 kB / 1.101 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.4597, allocations: 43.42 kB / 1.101 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.4597, allocations: 0 / 1.101 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of Templates: time 0.01755/0.4773, allocations: 9.583 MB / 1.111 GB, free: 14.69 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches