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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.000848/0.0008479, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007053/0.007053, allocations: 170.6 kB / 16.27 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.508/1.508, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.673/2.673, allocations: 390.9 MB / 0.6663 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004094/0.0004099, allocations: 12 kB / 0.816 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.928/0.9284, allocations: 142.4 MB / 0.955 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01961/0.948, allocations: 20.07 MB / 0.9746 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008581/0.9567, allocations: 4.919 MB / 0.9794 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00098/0.9577, allocations: 16.19 kB / 0.9794 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008971/0.9586, allocations: 220.4 kB / 0.9797 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.961, allocations: 0.7522 MB / 0.9804 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002158/0.9632, allocations: 0.6314 MB / 0.981 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002884/0.9661, allocations: 1.814 MB / 0.9828 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006853/0.9668, allocations: 372.1 kB / 0.9831 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.968, allocations: 0.5198 MB / 0.9836 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007122/0.9687, allocations: 452.5 kB / 0.9841 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.226e-05/0.9688, allocations: 19.66 kB / 0.9841 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.9702, allocations: 0.5948 MB / 0.9847 GB, free: 288 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.9703, allocations: 114.9 kB / 0.9848 GB, free: 200 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003163/0.9707, allocations: 291.5 kB / 0.9851 GB, free: 0 / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.9718, allocations: 0.8048 MB / 0.9858 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.9719, allocations: 0 / 0.9858 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of FrontEnd: time 3.036e-06/0.9719, allocations: 1.406 kB / 0.9858 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.433e-05/0.9719, allocations: 0 / 0.9858 GB, free: 15.49 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.001623/0.9735, allocations: 0.8391 MB / 0.9867 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.9736, allocations: 9.812 kB / 0.9867 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.9737, allocations: 63.41 kB / 0.9867 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006748/0.9744, allocations: 450.4 kB / 0.9872 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.9744, allocations: 28.66 kB / 0.9872 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.417e-05/0.9745, allocations: 36 kB / 0.9872 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.9752, allocations: 318 kB / 0.9875 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.9752, allocations: 0 / 0.9875 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.9753, allocations: 12 kB / 0.9875 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.9753, allocations: 8 kB / 0.9876 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006612/0.9759, allocations: 286.4 kB / 0.9878 GB, free: 13.64 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.002256/0.9782, allocations: 1.356 MB / 0.9891 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005481/0.9788, allocations: 276.3 kB / 0.9894 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.9791, allocations: 148.8 kB / 0.9896 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004796/0.9796, allocations: 0.4947 MB / 0.99 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.9796, allocations: 34.56 kB / 0.9901 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=25): time 1.843e-06/0.9796, allocations: 0 / 0.9901 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of matching and sorting (n=25): time 0.001832/0.9815, allocations: 0.5944 MB / 0.9907 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.9815, allocations: 55.41 kB / 0.9907 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005171/0.9821, allocations: 474 kB / 0.9912 GB, free: 9.93 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.9821, allocations: 33.7 kB / 0.9912 GB, free: 9.891 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.9823, allocations: 240.5 kB / 0.9914 GB, free: 9.652 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.13e-05/0.9824, allocations: 86.75 kB / 0.9915 GB, free: 9.566 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.045e-05/0.9825, allocations: 41.7 kB / 0.9915 GB, free: 9.52 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000178/0.9827, allocations: 354.8 kB / 0.9919 GB, free: 9.164 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003119/0.983, allocations: 123.9 kB / 0.992 GB, free: 9.043 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003721/0.9834, allocations: 189 kB / 0.9922 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.984, allocations: 297.1 kB / 0.9925 GB, free: 8.543 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.984, allocations: 0 / 0.9925 GB, free: 8.543 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001554/0.9856, allocations: 0.5017 MB / 0.9929 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.873e-05/0.9857, allocations: 110.7 kB / 0.9931 GB, free: 7.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.9857, allocations: 0 / 0.9931 GB, free: 7.91 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003668/0.9861, allocations: 52.81 kB / 0.9931 GB, free: 7.855 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.9864, allocations: 71.89 kB / 0.9932 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004403/0.9869, allocations: 0.5757 MB / 0.9937 GB, free: 7.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.9875, allocations: 73.97 kB / 0.9938 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.269e-05/0.9875, allocations: 12 kB / 0.9938 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.9875, allocations: 4 kB / 0.9938 GB, free: 7.098 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000738/0.9883, allocations: 319.3 kB / 0.9941 GB, free: 6.789 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-06/0.9883, allocations: 7.938 kB / 0.9941 GB, free: 6.781 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.226e-06/0.9883, allocations: 0 / 0.9941 GB, free: 6.781 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.9887, allocations: 87.88 kB / 0.9942 GB, free: 6.695 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.9887, allocations: 7.938 kB / 0.9942 GB, free: 6.688 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.9892, allocations: 67.64 kB / 0.9943 GB, free: 6.621 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.9892, allocations: 15.98 kB / 0.9943 GB, free: 6.605 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.0002767/0.9895, allocations: 253.1 kB / 0.9945 GB, free: 6.348 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/0.9896, allocations: 47.42 kB / 0.9946 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.9906, allocations: 446.2 kB / 0.995 GB, free: 5.852 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.9906, allocations: 7.984 kB / 0.995 GB, free: 5.844 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.9906, allocations: 0 / 0.995 GB, free: 5.844 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.9906, allocations: 3.938 kB / 0.995 GB, free: 5.84 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.9922, allocations: 0.9598 MB / 0.996 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.9922, allocations: 8.125 kB / 0.996 GB, free: 4.801 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.9924, allocations: 59.83 kB / 0.996 GB, free: 4.742 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001745/0.9926, allocations: 44.77 kB / 0.9961 GB, free: 4.695 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.9927, allocations: 8 kB / 0.9961 GB, free: 4.688 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003673/0.993, allocations: 0.5602 MB / 0.9966 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.993, allocations: 3.938 kB / 0.9966 GB, free: 4.098 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008285/0.9939, allocations: 0.4961 MB / 0.9971 GB, free: 3.57 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.9941, allocations: 160.3 kB / 0.9973 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.034e-05/0.9941, allocations: 11.98 kB / 0.9973 GB, free: 3.383 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.9945, allocations: 43.81 kB / 0.9973 GB, free: 3.34 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/0.9946, allocations: 31.91 kB / 0.9974 GB, free: 3.309 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.9946, allocations: 15.92 kB / 0.9974 GB, free: 3.293 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003667/0.995, allocations: 322.9 kB / 0.9977 GB, free: 2.98 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.4e-07/0.995, allocations: 0 / 0.9977 GB, free: 2.98 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0009466/0.996, allocations: 243.6 kB / 0.9979 GB, free: 2.742 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.0007688/0.9968, allocations: 250.5 kB / 0.9981 GB, free: 2.496 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00145/0.9982, allocations: 491.5 kB / 0.9986 GB, free: 2.016 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.9982, allocations: 0 / 0.9986 GB, free: 2.016 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004801/0.9987, allocations: 184 kB / 0.9988 GB, free: 1.836 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/1.001, allocations: 256.6 kB / 0.999 GB, free: 1.586 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/1.003, allocations: 1.021 MB / 1 GB, free: 0.5312 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007684/1.003, allocations: 0.863 MB / 1.001 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005674/1.004, allocations: 112.7 kB / 1.001 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/1.004, allocations: 35.44 kB / 1.001 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of SimCode: time 1.513e-06/1.004, allocations: 4 kB / 1.001 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of Templates: time 0.01935/1.024, allocations: 9.876 MB / 1.011 GB, free: 5.773 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