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.001123/0.001123, allocations: 90.05 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.001791/0.001791, allocations: 177.3 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.429/1.429, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.918/2.918, allocations: 462.6 MB / 0.737 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 9.844 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3651, allocations: 159.6 MB / 1.059 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02064/0.3857, allocations: 20.07 MB / 1.079 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007138/0.3929, allocations: 4.925 MB / 1.084 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007077/0.3936, allocations: 15.88 kB / 1.084 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007593/0.3944, allocations: 222.7 kB / 1.084 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002046/0.3965, allocations: 0.7609 MB / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001815/0.3983, allocations: 0.6349 MB / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002295/0.4006, allocations: 1.809 MB / 1.087 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006252/0.4012, allocations: 372.3 kB / 1.087 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.4023, allocations: 0.5134 MB / 1.088 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006532/0.403, allocations: 454 kB / 1.088 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.814e-05/0.403, allocations: 20 kB / 1.088 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.4043, allocations: 0.6002 MB / 1.089 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.4044, allocations: 103.6 kB / 1.089 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002992/0.4047, allocations: 292.2 kB / 1.089 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.4055, allocations: 0.5883 MB / 1.09 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4055, allocations: 3.984 kB / 1.09 GB, free: 5.559 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4055, allocations: 0 / 1.09 GB, free: 5.559 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.4055, allocations: 0 / 1.09 GB, free: 5.559 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.001437/0.407, allocations: 0.8267 MB / 1.091 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.407, allocations: 15.97 kB / 1.091 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.4072, allocations: 60.19 kB / 1.091 GB, free: 4.609 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005992/0.4078, allocations: 455.2 kB / 1.091 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.4078, allocations: 28.66 kB / 1.091 GB, free: 4.094 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.4079, allocations: 32 kB / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/0.4086, allocations: 325.9 kB / 1.092 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.4086, allocations: 4 kB / 1.092 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.4086, allocations: 8 kB / 1.092 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4086, allocations: 8 kB / 1.092 GB, free: 3.719 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006627/0.4093, allocations: 282.4 kB / 1.092 GB, free: 3.445 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.00221/0.4115, allocations: 1.353 MB / 1.093 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005392/0.4121, allocations: 265.9 kB / 1.093 GB, free: 1.703 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003276/0.4124, allocations: 148.9 kB / 1.094 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004599/0.4129, allocations: 0.4986 MB / 1.094 GB, free: 0.9453 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.4129, allocations: 30.56 kB / 1.094 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 2.004e-06/0.4129, allocations: 0 / 1.094 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25): time 0.001818/0.4147, allocations: 0.5982 MB / 1.095 GB, free: 288 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.4148, allocations: 59.34 kB / 1.095 GB, free: 216 kB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005455/0.4154, allocations: 458.2 kB / 1.095 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.4154, allocations: 33.7 kB / 1.095 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.4156, allocations: 252.3 kB / 1.095 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.101e-05/0.4157, allocations: 86.97 kB / 1.096 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.505e-05/0.4158, allocations: 33.7 kB / 1.096 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4159, allocations: 362.7 kB / 1.096 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.4163, allocations: 123.9 kB / 1.096 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.4166, allocations: 197 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006588/0.4173, allocations: 285.6 kB / 1.097 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.4173, allocations: 4 kB / 1.097 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001593/0.4189, allocations: 0.5014 MB / 1.097 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.936e-05/0.419, allocations: 110.7 kB / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.419, allocations: 0 / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003631/0.4194, allocations: 56.75 kB / 1.097 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003546/0.4198, allocations: 75.89 kB / 1.097 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004594/0.4202, allocations: 0.5717 MB / 1.098 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004984/0.4208, allocations: 67.89 kB / 1.098 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.4208, allocations: 19.97 kB / 1.098 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.4208, allocations: 4 kB / 1.098 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007399/0.4216, allocations: 322.1 kB / 1.098 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.4216, allocations: 4 kB / 1.098 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-06/0.4216, allocations: 0 / 1.098 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.422, allocations: 79.89 kB / 1.098 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.422, allocations: 8 kB / 1.098 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.4224, allocations: 67.69 kB / 1.098 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.4225, allocations: 12 kB / 1.098 GB, free: 12.42 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.0002798/0.4228, allocations: 249 kB / 1.099 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.4228, allocations: 47.44 kB / 1.099 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.4239, allocations: 452.4 kB / 1.099 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.4239, allocations: 4 kB / 1.099 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4239, allocations: 3.938 kB / 1.099 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.4239, allocations: 3.938 kB / 1.099 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001528/0.4254, allocations: 0.9679 MB / 1.1 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.4255, allocations: 4 kB / 1.1 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.4257, allocations: 47.97 kB / 1.1 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001723/0.4259, allocations: 44.7 kB / 1.1 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.4259, allocations: 8 kB / 1.1 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003668/0.4263, allocations: 0.5642 MB / 1.101 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4263, allocations: 0 / 1.101 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008492/0.4272, allocations: 0.5146 MB / 1.101 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.4273, allocations: 156.4 kB / 1.101 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.463e-05/0.4274, allocations: 8 kB / 1.101 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.4278, allocations: 47.86 kB / 1.101 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/0.4279, allocations: 27.83 kB / 1.101 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.4279, allocations: 11.94 kB / 1.101 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003678/0.4283, allocations: 322.9 kB / 1.102 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4283, allocations: 0 / 1.102 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007757/0.4291, allocations: 251.5 kB / 1.102 GB, free: 8.539 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.000569/0.4296, allocations: 253.5 kB / 1.102 GB, free: 8.289 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001286/0.4309, allocations: 491.6 kB / 1.103 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.4309, allocations: 0 / 1.103 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.4314, allocations: 180 kB / 1.103 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.433, allocations: 251 kB / 1.103 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.4347, allocations: 1.055 MB / 1.104 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.4351, allocations: 0.8512 MB / 1.105 GB, free: 5.418 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.4353, allocations: 47.42 kB / 1.105 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.4353, allocations: 0 / 1.105 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of Templates: time 0.01686/0.4521, allocations: 10.2 MB / 1.115 GB, free: 11.26 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/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