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.001004/0.001004, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008573/0.008573, allocations: 172.3 kB / 16.26 MB, free: 6.613 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.517/1.517, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.93/2.93, allocations: 462.6 MB / 0.7363 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003865, allocations: 9.031 kB / 0.9027 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3426, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01984/0.3625, allocations: 20.07 MB / 1.078 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007236/0.3698, allocations: 4.927 MB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008365/0.3706, allocations: 15.88 kB / 1.083 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008035/0.3715, allocations: 222.6 kB / 1.083 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002325/0.3738, allocations: 0.7491 MB / 1.084 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001953/0.3758, allocations: 0.6455 MB / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0025/0.3783, allocations: 1.805 MB / 1.086 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006463/0.3789, allocations: 372.3 kB / 1.087 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.3801, allocations: 0.5173 MB / 1.087 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007167/0.3808, allocations: 450 kB / 1.088 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.289e-05/0.3809, allocations: 20 kB / 1.088 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.3821, allocations: 0.5925 MB / 1.088 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.3823, allocations: 103.5 kB / 1.088 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.3826, allocations: 292.2 kB / 1.089 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.3837, allocations: 0.8175 MB / 1.089 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3837, allocations: 7.938 kB / 1.089 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3837, allocations: 0 / 1.089 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.3838, allocations: 0 / 1.089 GB, free: 5.336 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.001613/0.3854, allocations: 0.8177 MB / 1.09 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.3854, allocations: 23.84 kB / 1.09 GB, free: 4.445 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.3856, allocations: 64.19 kB / 1.09 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.3862, allocations: 447.2 kB / 1.091 GB, free: 3.906 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.3862, allocations: 28.66 kB / 1.091 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.228e-05/0.3863, allocations: 36 kB / 1.091 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.387, allocations: 325.9 kB / 1.091 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3871, allocations: 0 / 1.091 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.3871, allocations: 8 kB / 1.091 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.3871, allocations: 8 kB / 1.091 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006499/0.3878, allocations: 282.4 kB / 1.091 GB, free: 3.227 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.00228/0.3901, allocations: 1.353 MB / 1.093 GB, free: 1.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005279/0.3906, allocations: 270.5 kB / 1.093 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.3909, allocations: 148.8 kB / 1.093 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004777/0.3914, allocations: 0.4986 MB / 1.094 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.3915, allocations: 34.56 kB / 1.094 GB, free: 0.6758 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3915, allocations: 0 / 1.094 GB, free: 0.6758 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25): time 0.001903/0.3934, allocations: 0.5939 MB / 1.094 GB, free: 56 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.3934, allocations: 63.28 kB / 1.094 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/0.394, allocations: 462.2 kB / 1.095 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.394, allocations: 29.7 kB / 1.095 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.3942, allocations: 244.4 kB / 1.095 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.004e-05/0.3943, allocations: 86.75 kB / 1.095 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.3943, allocations: 33.7 kB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3945, allocations: 362.8 kB / 1.095 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.3948, allocations: 123.9 kB / 1.096 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.3952, allocations: 189 kB / 1.096 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006415/0.3959, allocations: 306.2 kB / 1.096 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3959, allocations: 0 / 1.096 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00155/0.3974, allocations: 0.5014 MB / 1.097 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.426e-05/0.3975, allocations: 108.3 kB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3975, allocations: 4 kB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003649/0.3979, allocations: 60.77 kB / 1.097 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.3983, allocations: 71.89 kB / 1.097 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004634/0.3987, allocations: 0.5795 MB / 1.097 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.3993, allocations: 63.67 kB / 1.097 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.3993, allocations: 16.05 kB / 1.097 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.3993, allocations: 8 kB / 1.097 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008194/0.4002, allocations: 321.5 kB / 1.098 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4002, allocations: 4 kB / 1.098 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.136e-06/0.4002, allocations: 0 / 1.098 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.4006, allocations: 83.89 kB / 1.098 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.4006, allocations: 0 / 1.098 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004304/0.401, allocations: 67.69 kB / 1.098 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.4011, allocations: 12 kB / 1.098 GB, free: 12.19 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 (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.0002778/0.4013, allocations: 245.6 kB / 1.098 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.608e-05/0.4014, allocations: 51.44 kB / 1.098 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.4025, allocations: 452.6 kB / 1.099 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/0.4025, allocations: 8 kB / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4025, allocations: 0 / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.4025, allocations: 3.938 kB / 1.099 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.4041, allocations: 0.9562 MB / 1.1 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4041, allocations: 4 kB / 1.1 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.4044, allocations: 56.03 kB / 1.1 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.4046, allocations: 48.77 kB / 1.1 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.4046, allocations: 8 kB / 1.1 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003588/0.405, allocations: 0.5601 MB / 1.1 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.405, allocations: 0 / 1.1 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009001/0.4059, allocations: 0.5184 MB / 1.101 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.4061, allocations: 152.4 kB / 1.101 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.4062, allocations: 12 kB / 1.101 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003952/0.4066, allocations: 48.05 kB / 1.101 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.639e-05/0.4067, allocations: 27.83 kB / 1.101 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.4067, allocations: 15.92 kB / 1.101 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003623/0.4071, allocations: 330.8 kB / 1.101 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4071, allocations: 0 / 1.101 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008667/0.408, allocations: 255.5 kB / 1.102 GB, free: 8.293 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 (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.0006264/0.4086, allocations: 238.4 kB / 1.102 GB, free: 8.059 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001299/0.4099, allocations: 495.8 kB / 1.102 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.4099, allocations: 0 / 1.102 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.4104, allocations: 179.7 kB / 1.102 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.412, allocations: 263 kB / 1.103 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.4137, allocations: 1.017 MB / 1.104 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.4142, allocations: 0.8629 MB / 1.104 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005245/0.4147, allocations: 120.2 kB / 1.105 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.4149, allocations: 39.42 kB / 1.105 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of SimCode: time 5.31e-07/0.4149, allocations: 0 / 1.105 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of Templates: time 0.01922/0.4341, allocations: 9.866 MB / 1.114 GB, free: 11.35 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