Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: 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_10_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_10_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.001138/0.001138, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001625, allocations: 181.5 kB / 16.92 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.565/1.565, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.625/2.625, allocations: 437.8 MB / 0.7128 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.000395, allocations: 11.94 kB / 0.8735 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7796/0.78, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02329/0.8034, allocations: 20.07 MB / 1.043 GB, free: 11.69 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007643/0.8111, allocations: 4.936 MB / 1.048 GB, free: 6.738 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007802/0.8119, allocations: 15.88 kB / 1.048 GB, free: 6.723 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009101/0.8128, allocations: 214.7 kB / 1.048 GB, free: 6.512 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002287/0.8151, allocations: 0.7464 MB / 1.049 GB, free: 5.762 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.817, allocations: 0.6403 MB / 1.05 GB, free: 5.129 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002381/0.8194, allocations: 1.816 MB / 1.051 GB, free: 3.301 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005881/0.82, allocations: 377.9 kB / 1.052 GB, free: 2.934 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.8214, allocations: 0.5095 MB / 1.052 GB, free: 2.422 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000696/0.8221, allocations: 450.1 kB / 1.053 GB, free: 1.98 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.8222, allocations: 20 kB / 1.053 GB, free: 1.961 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/0.8234, allocations: 0.6003 MB / 1.053 GB, free: 1.359 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.8235, allocations: 107.5 kB / 1.053 GB, free: 1.254 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0004056/0.8239, allocations: 288.2 kB / 1.054 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007816/0.8247, allocations: 0.5923 MB / 1.054 GB, free: 380 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.8247, allocations: 0 / 1.054 GB, free: 380 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.934e-06/0.8247, allocations: 0 / 1.054 GB, free: 380 kB / 0.795 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.8247, allocations: 0 / 1.054 GB, free: 380 kB / 0.795 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.001545/0.8263, allocations: 0.8293 MB / 1.055 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.8264, allocations: 12.03 kB / 1.055 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.8265, allocations: 64.17 kB / 1.055 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.8271, allocations: 447.3 kB / 1.056 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.8271, allocations: 28.66 kB / 1.056 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/0.8272, allocations: 36 kB / 1.056 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006625/0.8279, allocations: 318 kB / 1.056 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.8279, allocations: 3.938 kB / 1.056 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.8279, allocations: 8 kB / 1.056 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.8279, allocations: 8 kB / 1.056 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007731/0.8287, allocations: 286.4 kB / 1.056 GB, free: 14.26 MB / 0.8106 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.002362/0.8311, allocations: 1.352 MB / 1.058 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.8316, allocations: 266.5 kB / 1.058 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.832, allocations: 154.3 kB / 1.058 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004631/0.8325, allocations: 0.4948 MB / 1.058 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.8325, allocations: 34.56 kB / 1.059 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.8325, allocations: 0 / 1.059 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001928/0.8344, allocations: 0.5978 MB / 1.059 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.8345, allocations: 55.41 kB / 1.059 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005206/0.835, allocations: 466.1 kB / 1.06 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.8351, allocations: 33.7 kB / 1.06 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.8353, allocations: 240.5 kB / 1.06 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.435e-05/0.8353, allocations: 86.75 kB / 1.06 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/0.8354, allocations: 33.92 kB / 1.06 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.8355, allocations: 362.8 kB / 1.06 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.8359, allocations: 135.7 kB / 1.06 GB, free: 9.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003852/0.8363, allocations: 193 kB / 1.061 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/0.8369, allocations: 286.8 kB / 1.061 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.8369, allocations: 0 / 1.061 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001693/0.8386, allocations: 0.5014 MB / 1.061 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.863e-05/0.8387, allocations: 112.7 kB / 1.061 GB, free: 8.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.8387, allocations: 4 kB / 1.061 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003682/0.8391, allocations: 56.88 kB / 1.062 GB, free: 8.473 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/0.8395, allocations: 75.83 kB / 1.062 GB, free: 8.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004714/0.84, allocations: 0.5679 MB / 1.062 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.8405, allocations: 71.59 kB / 1.062 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.219e-05/0.8406, allocations: 16.06 kB / 1.062 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.8406, allocations: 4 kB / 1.062 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007483/0.8413, allocations: 319.8 kB / 1.063 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.8414, allocations: 4 kB / 1.063 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.776e-06/0.8414, allocations: 0 / 1.063 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003996/0.8418, allocations: 83.88 kB / 1.063 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.885e-06/0.8418, allocations: 0 / 1.063 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004766/0.8423, allocations: 73.39 kB / 1.063 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.8423, allocations: 15.98 kB / 1.063 GB, free: 7.23 MB / 0.8106 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.0002637/0.8426, allocations: 247.4 kB / 1.063 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.8427, allocations: 47.44 kB / 1.063 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.8437, allocations: 439.9 kB / 1.063 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.8437, allocations: 4 kB / 1.063 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.8437, allocations: 0 / 1.063 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.8437, allocations: 12 kB / 1.063 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.8453, allocations: 0.963 MB / 1.064 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.8453, allocations: 4 kB / 1.064 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.8456, allocations: 48.09 kB / 1.064 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.8458, allocations: 56.72 kB / 1.064 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.8458, allocations: 11.98 kB / 1.065 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003759/0.8462, allocations: 0.5601 MB / 1.065 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8462, allocations: 4.062 kB / 1.065 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000845/0.8471, allocations: 0.5067 MB / 1.066 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.8473, allocations: 156.4 kB / 1.066 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/0.8473, allocations: 8 kB / 1.066 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.8477, allocations: 51.8 kB / 1.066 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/0.8478, allocations: 23.97 kB / 1.066 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.8478, allocations: 15.94 kB / 1.066 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003599/0.8482, allocations: 322.9 kB / 1.066 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8482, allocations: 0 / 1.066 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00078/0.849, allocations: 251.5 kB / 1.066 GB, free: 3.363 MB / 0.8106 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.0005508/0.8495, allocations: 250.7 kB / 1.067 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001276/0.8508, allocations: 496 kB / 1.067 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.8508, allocations: 0 / 1.067 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004251/0.8513, allocations: 176 kB / 1.067 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.8529, allocations: 254.4 kB / 1.067 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.8545, allocations: 1.046 MB / 1.068 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.8549, allocations: 0.8552 MB / 1.069 GB, free: 244 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.8551, allocations: 43.42 kB / 1.069 GB, free: 200 kB / 0.8106 GB Notification: Performance of SimCode: time 4.4e-07/0.8551, allocations: 0 / 1.069 GB, free: 200 kB / 0.8106 GB Notification: Performance of Templates: time 0.01501/0.8701, allocations: 10.2 MB / 1.079 GB, free: 6.086 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches