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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001552/0.001552, allocations: 104.7 kB / 16.41 MB, free: 6.512 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.001689/0.001689, allocations: 187 kB / 17.34 MB, free: 5.742 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.466/1.466, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.754/2.754, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001515, allocations: 63.91 kB / 1.055 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9184/0.9199, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02615/0.9461, allocations: 20.74 MB / 1.229 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.008637/0.9548, allocations: 4.947 MB / 1.233 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.956, allocations: 19.88 kB / 1.234 GB, free: 3.816 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.9572, allocations: 278 kB / 1.234 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003008/0.9603, allocations: 0.8199 MB / 1.235 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002554/0.9629, allocations: 0.7111 MB / 1.235 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002468/0.9654, allocations: 1.384 MB / 1.237 GB, free: 0.625 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.9664, allocations: 436.2 kB / 1.237 GB, free: 204 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001527/0.968, allocations: 0.5759 MB / 1.238 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009965/0.969, allocations: 450.1 kB / 1.238 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.9692, allocations: 44 kB / 1.238 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.9708, allocations: 0.6316 MB / 1.239 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002293/0.971, allocations: 119.5 kB / 1.239 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000508/0.9715, allocations: 286.5 kB / 1.239 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.9732, allocations: 0.8469 MB / 1.24 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.9733, allocations: 0 / 1.24 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.834e-06/0.9733, allocations: 0 / 1.24 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.461e-05/0.9733, allocations: 0 / 1.24 GB, free: 13.26 MB / 0.9669 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.002343/0.9756, allocations: 0.9303 MB / 1.241 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.9757, allocations: 8.031 kB / 1.241 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.9759, allocations: 64.19 kB / 1.241 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.977, allocations: 479.3 kB / 1.241 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.977, allocations: 32.64 kB / 1.241 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.9771, allocations: 32 kB / 1.241 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000772/0.9779, allocations: 314 kB / 1.242 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.9779, allocations: 0 / 1.242 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/0.978, allocations: 8 kB / 1.242 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.978, allocations: 8 kB / 1.242 GB, free: 11.31 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006959/0.9787, allocations: 266.4 kB / 1.242 GB, free: 11.05 MB / 0.9669 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.002738/0.9814, allocations: 1.333 MB / 1.243 GB, free: 9.594 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.982, allocations: 250.5 kB / 1.244 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.9823, allocations: 140.7 kB / 1.244 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005278/0.9828, allocations: 0.4947 MB / 1.244 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.9829, allocations: 30.56 kB / 1.244 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 2.104e-06/0.9829, allocations: 4 kB / 1.244 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001899/0.9848, allocations: 0.5693 MB / 1.245 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.9848, allocations: 51.41 kB / 1.245 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005868/0.9854, allocations: 466.1 kB / 1.245 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.9855, allocations: 37.92 kB / 1.245 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.9857, allocations: 244.5 kB / 1.245 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.849e-05/0.9858, allocations: 90.62 kB / 1.246 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.9859, allocations: 81.42 kB / 1.246 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.9861, allocations: 354.8 kB / 1.246 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.9865, allocations: 124.8 kB / 1.246 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005204/0.987, allocations: 178.6 kB / 1.246 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006268/0.9877, allocations: 270.4 kB / 1.247 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.9877, allocations: 0 / 1.247 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002018/0.9897, allocations: 500 kB / 1.247 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.9898, allocations: 8 kB / 1.247 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.9898, allocations: 3.984 kB / 1.247 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004559/0.9902, allocations: 60.73 kB / 1.247 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.9906, allocations: 71.89 kB / 1.247 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005459/0.9912, allocations: 0.5602 MB / 1.248 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004967/0.9917, allocations: 47.7 kB / 1.248 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.9917, allocations: 16 kB / 1.248 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005195/0.9923, allocations: 244.1 kB / 1.248 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003802/0.9927, allocations: 181.6 kB / 1.248 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006822/0.9934, allocations: 264.3 kB / 1.248 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.805e-06/0.9934, allocations: 0 / 1.248 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0008851/0.9943, allocations: 368.8 kB / 1.249 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.9943, allocations: 7.938 kB / 1.249 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.9943, allocations: 0 / 1.249 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.552e-06/0.9943, allocations: 4 kB / 1.249 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.9947, allocations: 83.81 kB / 1.249 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.9947, allocations: 4 kB / 1.249 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000578/0.9953, allocations: 47.8 kB / 1.249 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.9954, allocations: 11.98 kB / 1.249 GB, free: 3.508 MB / 0.9669 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.0001818/0.9955, allocations: 208.1 kB / 1.249 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.9957, allocations: 43.44 kB / 1.249 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/0.9968, allocations: 424.3 kB / 1.25 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.9968, allocations: 4 kB / 1.25 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.9968, allocations: 0 / 1.25 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.9968, allocations: 3.984 kB / 1.25 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.9985, allocations: 0.9394 MB / 1.25 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.9986, allocations: 0 / 1.25 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.9988, allocations: 47.91 kB / 1.251 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/0.999, allocations: 40.83 kB / 1.251 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.999, allocations: 16.11 kB / 1.251 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004066/0.9994, allocations: 0.5601 MB / 1.251 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.9995, allocations: 3.938 kB / 1.251 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008662/1, allocations: 495.1 kB / 1.252 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/1.001, allocations: 156.4 kB / 1.252 GB, free: 428 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/1.001, allocations: 15.94 kB / 1.252 GB, free: 412 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/1.001, allocations: 31.91 kB / 1.252 GB, free: 380 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/1.001, allocations: 27.91 kB / 1.252 GB, free: 352 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.853e-05/1.001, allocations: 8 kB / 1.252 GB, free: 344 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004904/1.002, allocations: 322.9 kB / 1.252 GB, free: 24 kB / 0.9669 GB Notification: Performance of sort global known variables: time 4.3e-07/1.002, allocations: 0 / 1.252 GB, free: 24 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001119/1.003, allocations: 251.5 kB / 1.252 GB, free: 15.78 MB / 0.9825 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.0008307/1.004, allocations: 255.6 kB / 1.253 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001495/1.005, allocations: 474.6 kB / 1.253 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.005, allocations: 0 / 1.253 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004556/1.006, allocations: 164.1 kB / 1.253 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/1.007, allocations: 226.9 kB / 1.253 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/1.009, allocations: 0.8544 MB / 1.254 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/1.01, allocations: 0.851 MB / 1.255 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/1.01, allocations: 43.42 kB / 1.255 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of SimCode: time 6.21e-07/1.01, allocations: 0 / 1.255 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of Templates: time 0.01738/1.027, allocations: 10.15 MB / 1.265 GB, free: 2.809 MB / 0.9825 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches