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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001141/0.001141, allocations: 90.52 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.01007/0.01007, allocations: 171.1 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.57/1.57, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.082/3.082, allocations: 473.4 MB / 0.7469 GB, free: 6.098 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004158/0.0004161, allocations: 14.12 kB / 0.9158 GB, free: 33.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.387, allocations: 162.2 MB / 1.074 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01972/0.4067, allocations: 20.07 MB / 1.094 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00694/0.4137, allocations: 4.924 MB / 1.099 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006398/0.4144, allocations: 15.88 kB / 1.099 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007545/0.4151, allocations: 226.7 kB / 1.099 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002011/0.4171, allocations: 0.7386 MB / 1.1 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.4189, allocations: 0.6451 MB / 1.1 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001939/0.4208, allocations: 1.805 MB / 1.102 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005509/0.4214, allocations: 372.3 kB / 1.102 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008669/0.4223, allocations: 0.5173 MB / 1.103 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005809/0.4229, allocations: 450.1 kB / 1.103 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.4229, allocations: 23.94 kB / 1.103 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.4241, allocations: 0.6003 MB / 1.104 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.4242, allocations: 95.58 kB / 1.104 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002667/0.4245, allocations: 292.2 kB / 1.104 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009971/0.4255, allocations: 0.8175 MB / 1.105 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4255, allocations: 0 / 1.105 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4255, allocations: 0 / 1.105 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.4255, allocations: 0 / 1.105 GB, free: 7.867 MB / 0.8575 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.001388/0.4269, allocations: 0.8348 MB / 1.106 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.4269, allocations: 8.031 kB / 1.106 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.4271, allocations: 68.12 kB / 1.106 GB, free: 6.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.4277, allocations: 455.1 kB / 1.106 GB, free: 6.426 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/0.4277, allocations: 24.66 kB / 1.106 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.444e-05/0.4278, allocations: 36 kB / 1.106 GB, free: 6.363 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006694/0.4284, allocations: 318 kB / 1.107 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.4285, allocations: 3.938 kB / 1.107 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.4285, allocations: 12 kB / 1.107 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.4285, allocations: 8 kB / 1.107 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006792/0.4292, allocations: 282.4 kB / 1.107 GB, free: 5.75 MB / 0.8575 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.002101/0.4313, allocations: 1.36 MB / 1.108 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.4319, allocations: 278.3 kB / 1.109 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.4322, allocations: 140.8 kB / 1.109 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000403/0.4326, allocations: 0.4908 MB / 1.109 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.4326, allocations: 46.5 kB / 1.109 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=25): time 1.452e-06/0.4327, allocations: 0 / 1.109 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of matching and sorting (n=25): time 0.001824/0.4345, allocations: 0.5899 MB / 1.11 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.4345, allocations: 51.41 kB / 1.11 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005027/0.4351, allocations: 474.1 kB / 1.11 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.4351, allocations: 33.7 kB / 1.11 GB, free: 2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.4353, allocations: 244.5 kB / 1.111 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.4353, allocations: 78.77 kB / 1.111 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.4354, allocations: 41.69 kB / 1.111 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4355, allocations: 354.8 kB / 1.111 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003272/0.4359, allocations: 131.9 kB / 1.111 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.4363, allocations: 186.9 kB / 1.111 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006654/0.4369, allocations: 304.2 kB / 1.112 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4369, allocations: 0 / 1.112 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001615/0.4386, allocations: 0.5043 MB / 1.112 GB, free: 136 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.4386, allocations: 106.7 kB / 1.112 GB, free: 16 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.4387, allocations: 0 / 1.112 GB, free: 16 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003795/0.439, allocations: 60.75 kB / 1.112 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.4394, allocations: 71.95 kB / 1.112 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004031/0.4398, allocations: 0.564 MB / 1.113 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005069/0.4404, allocations: 67.69 kB / 1.113 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.341e-05/0.4404, allocations: 16 kB / 1.113 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 8.136e-06/0.4404, allocations: 5.406 kB / 1.113 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007782/0.4412, allocations: 319.6 kB / 1.113 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.4412, allocations: 3.938 kB / 1.113 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.482e-06/0.4412, allocations: 4 kB / 1.113 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004142/0.4417, allocations: 87.88 kB / 1.113 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.4417, allocations: 4 kB / 1.113 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004935/0.4422, allocations: 59.7 kB / 1.113 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.4422, allocations: 19.98 kB / 1.113 GB, free: 14.72 MB / 0.8731 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.0003029/0.4425, allocations: 245.9 kB / 1.114 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.4427, allocations: 51.34 kB / 1.114 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.4438, allocations: 444.7 kB / 1.114 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.4438, allocations: 4 kB / 1.114 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4438, allocations: 0 / 1.114 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.4438, allocations: 15.86 kB / 1.114 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.4457, allocations: 0.9711 MB / 1.115 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.4457, allocations: 0 / 1.115 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.4459, allocations: 51.91 kB / 1.115 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/0.4461, allocations: 48.89 kB / 1.115 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.4462, allocations: 11.98 kB / 1.115 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003981/0.4466, allocations: 0.5524 MB / 1.116 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4466, allocations: 3.938 kB / 1.116 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008947/0.4475, allocations: 0.5069 MB / 1.116 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.4477, allocations: 164.3 kB / 1.116 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.951e-05/0.4478, allocations: 8 kB / 1.116 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003939/0.4482, allocations: 43.95 kB / 1.116 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.219e-05/0.4483, allocations: 27.77 kB / 1.116 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.997e-05/0.4483, allocations: 20.11 kB / 1.117 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003971/0.4487, allocations: 318.9 kB / 1.117 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4487, allocations: 0 / 1.117 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008592/0.4496, allocations: 251.5 kB / 1.117 GB, free: 10.84 MB / 0.8731 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.0006526/0.4502, allocations: 250.8 kB / 1.117 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001295/0.4516, allocations: 485.6 kB / 1.118 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4516, allocations: 0 / 1.118 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004534/0.452, allocations: 186.9 kB / 1.118 GB, free: 9.941 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001629/0.4537, allocations: 253.3 kB / 1.118 GB, free: 9.695 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.4553, allocations: 1.022 MB / 1.119 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.4557, allocations: 0.8591 MB / 1.12 GB, free: 7.746 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0004579/0.4561, allocations: 120.7 kB / 1.12 GB, free: 7.629 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.894e-05/0.4563, allocations: 39.42 kB / 1.12 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.4563, allocations: 0 / 1.12 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of Templates: time 0.01802/0.4743, allocations: 9.891 MB / 1.13 GB, free: 13.85 MB / 0.8887 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