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: 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_9_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_9_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.0009723/0.0009723, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001146/0.001146, allocations: 168.7 kB / 15.95 MB, free: 208 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.559/1.559, allocations: 223.3 MB / 240 MB, free: 5.348 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.506/2.506, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.0003934, allocations: 8 kB / 0.8153 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032/1.032, allocations: 142.4 MB / 0.9544 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02208/1.055, allocations: 19.03 MB / 0.973 GB, free: 8.539 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008726/1.063, allocations: 4.631 MB / 0.9775 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/1.065, allocations: 15.78 kB / 0.9776 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009761/1.066, allocations: 195.5 kB / 0.9777 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002396/1.068, allocations: 0.6487 MB / 0.9784 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002197/1.07, allocations: 0.6074 MB / 0.979 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002694/1.073, allocations: 1.541 MB / 0.9805 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006939/1.074, allocations: 349 kB / 0.9808 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00126/1.075, allocations: 0.502 MB / 0.9813 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007298/1.076, allocations: 426.6 kB / 0.9817 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.168e-05/1.076, allocations: 19.88 kB / 0.9817 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00148/1.077, allocations: 0.5195 MB / 0.9822 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001446/1.077, allocations: 106.9 kB / 0.9823 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001858/1.078, allocations: 123.7 kB / 0.9824 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008563/1.078, allocations: 0.5537 MB / 0.983 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/1.078, allocations: 1.281 kB / 0.983 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.944e-06/1.078, allocations: 0 / 0.983 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.195e-05/1.078, allocations: 0 / 0.983 GB, free: 1.227 MB / 0.7325 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.00164/1.08, allocations: 0.8441 MB / 0.9838 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/1.08, allocations: 9.156 kB / 0.9838 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/1.08, allocations: 66.86 kB / 0.9839 GB, free: 496 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006873/1.081, allocations: 426.1 kB / 0.9843 GB, free: 116 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/1.081, allocations: 27.47 kB / 0.9843 GB, free: 104 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/1.081, allocations: 39.31 kB / 0.9844 GB, free: 88 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007961/1.082, allocations: 315.7 kB / 0.9847 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/1.082, allocations: 0 / 0.9847 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/1.082, allocations: 9.594 kB / 0.9847 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.451e-05/1.082, allocations: 7.688 kB / 0.9847 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007608/1.083, allocations: 291 kB / 0.985 GB, free: 15.77 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.002227/1.085, allocations: 1.351 MB / 0.9863 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005083/1.086, allocations: 268.3 kB / 0.9865 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/1.086, allocations: 148.8 kB / 0.9867 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004724/1.086, allocations: 0.4947 MB / 0.9872 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/1.086, allocations: 34.56 kB / 0.9872 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=25): time 3.136e-06/1.086, allocations: 96 / 0.9872 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of matching and sorting (n=25): time 0.001602/1.088, allocations: 0.5904 MB / 0.9878 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/1.088, allocations: 59.36 kB / 0.9878 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/1.089, allocations: 462.1 kB / 0.9883 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/1.089, allocations: 37.64 kB / 0.9883 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/1.089, allocations: 240.5 kB / 0.9885 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.355e-05/1.089, allocations: 86.75 kB / 0.9886 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/1.089, allocations: 4 kB / 0.9886 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001598/1.089, allocations: 362.8 kB / 0.989 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/1.089, allocations: 119.9 kB / 0.9891 GB, free: 11.58 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/1.09, allocations: 189.2 kB / 0.9893 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/1.09, allocations: 142.4 kB / 0.9894 GB, free: 11.24 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.09, allocations: 0 / 0.9894 GB, free: 11.24 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009165/1.091, allocations: 423.5 kB / 0.9898 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.952e-05/1.091, allocations: 110.7 kB / 0.9899 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.091, allocations: 11.98 kB / 0.9899 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/1.091, allocations: 52.84 kB / 0.99 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/1.092, allocations: 75.89 kB / 0.99 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004659/1.092, allocations: 0.564 MB / 0.9906 GB, free: 9.969 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/1.093, allocations: 67.67 kB / 0.9906 GB, free: 9.902 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/1.093, allocations: 16.05 kB / 0.9907 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/1.093, allocations: 4 kB / 0.9907 GB, free: 9.883 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006951/1.094, allocations: 322.6 kB / 0.991 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/1.094, allocations: 0 / 0.991 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.22e-06/1.094, allocations: 3.953 kB / 0.991 GB, free: 9.566 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/1.094, allocations: 87.88 kB / 0.9911 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/1.094, allocations: 4 kB / 0.9911 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/1.094, allocations: 67.64 kB / 0.9911 GB, free: 9.41 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/1.094, allocations: 12 kB / 0.9911 GB, free: 9.398 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 (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.0002634/1.095, allocations: 249 kB / 0.9914 GB, free: 9.145 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.667e-05/1.095, allocations: 43.44 kB / 0.9914 GB, free: 9.102 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009658/1.096, allocations: 458.2 kB / 0.9919 GB, free: 8.641 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/1.096, allocations: 0 / 0.9919 GB, free: 8.641 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/1.096, allocations: 4 kB / 0.9919 GB, free: 8.637 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/1.096, allocations: 3.984 kB / 0.9919 GB, free: 8.633 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/1.097, allocations: 0.9713 MB / 0.9928 GB, free: 7.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/1.097, allocations: 0 / 0.9928 GB, free: 7.59 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/1.098, allocations: 60.03 kB / 0.9929 GB, free: 7.531 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001507/1.098, allocations: 36.83 kB / 0.9929 GB, free: 7.492 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/1.098, allocations: 15.98 kB / 0.9929 GB, free: 7.477 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003808/1.098, allocations: 0.5524 MB / 0.9935 GB, free: 6.898 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.098, allocations: 4 kB / 0.9935 GB, free: 6.895 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008027/1.099, allocations: 0.5031 MB / 0.994 GB, free: 6.359 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/1.099, allocations: 160.3 kB / 0.9941 GB, free: 6.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/1.099, allocations: 8 kB / 0.9941 GB, free: 6.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003244/1.1, allocations: 47.89 kB / 0.9942 GB, free: 6.129 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/1.1, allocations: 19.91 kB / 0.9942 GB, free: 6.109 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/1.1, allocations: 19.95 kB / 0.9942 GB, free: 6.09 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003595/1.1, allocations: 318.9 kB / 0.9945 GB, free: 5.781 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/1.1, allocations: 0 / 0.9945 GB, free: 5.781 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008288/1.101, allocations: 247.5 kB / 0.9947 GB, free: 5.539 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 (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.0006543/1.102, allocations: 256.3 kB / 0.995 GB, free: 5.289 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001162/1.103, allocations: 491.5 kB / 0.9955 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.103, allocations: 4 kB / 0.9955 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003796/1.103, allocations: 176 kB / 0.9956 GB, free: 4.633 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/1.105, allocations: 256 kB / 0.9959 GB, free: 4.387 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/1.106, allocations: 0.9712 MB / 0.9968 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/1.107, allocations: 0.8591 MB / 0.9977 GB, free: 2.492 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0004177/1.107, allocations: 124.3 kB / 0.9978 GB, free: 2.371 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/1.107, allocations: 43.42 kB / 0.9978 GB, free: 2.328 MB / 0.7481 GB Notification: Performance of SimCode: time 4.81e-07/1.107, allocations: 4 kB / 0.9978 GB, free: 2.324 MB / 0.7481 GB Notification: Performance of Templates: time 0.0184/1.126, allocations: 9.567 MB / 1.007 GB, free: 8.914 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (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 & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches